actinia-core
actinia-core copied to clipboard
Webhooks: support multiple webhooks and different json payloads
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'}"
}
]
},