actinia-core icon indicating copy to clipboard operation
actinia-core copied to clipboard

Webhooks: support multiple webhooks and different json payloads

Open ninsbl opened this issue 1 year ago • 0 comments

The webhooks in the processing chain are a very useful feature. It would be even more useful if several webhooks could be called and if not only the final actinia response, but a custom json payload could be send to the POST webhook. In a custom json body, the actinia response would be ideally included if needed with help of a fixe "variable" name.

Here I think in general of modifying webhooks to look like e.g. here:

"webhooks": {
    "finished": [{"auth": "username:password",
                  "url": "http://business-logic.company.com/api/v3/actinia-finished-webhook_1",
                  "json": "{'post-body': 'json'}"
                 },
                  {"auth": "username:password",
                   "url": "http://business-logic.company.com/api/v3/actinia-finished-webhook_2",
                   "json": "{'post-body': 'json'}"
                  }
                  ]

},

ninsbl avatar Jan 24 '23 22:01 ninsbl