1
0
mirror of https://github.com/sismics/docs.git synced 2025-12-26 16:11:42 +00:00

#243: call webhooks

This commit is contained in:
Benjamin Gamard
2018-10-16 22:49:29 +02:00
parent dfdd5f8d20
commit 884239bc26
9 changed files with 192 additions and 2 deletions

View File

@@ -67,6 +67,7 @@ public class WebhookResource extends BaseResource {
* Add a webhook.
*
* @api {put} /webhook Add a webhook
* @apiDescription Each time the specified event is raised, the webhook URL will be POST-ed with the following JSON payload: {"event": "Event name", "id": "ID of the document or file"}
* @apiName PutWebhook
* @apiWebhook Webhook
* @apiParam {String="DOCUMENT_CREATED","DOCUMENT_UPDATED","DOCUMENT_DELETED","FILE_CREATED","FILE_UPDATED","FILE_DELETED"} event Event