From 145fccdd23cb47c6df82e798949021fd03ba2af1 Mon Sep 17 00:00:00 2001 From: licanwei Date: Thu, 6 Feb 2020 14:43:16 +0800 Subject: [PATCH] api-ref: Add webhook API reference Change-Id: I75c5b2de55df276d414633f16ad9735a9871b59d Implements: blueprint event-driven-optimization-based --- api-ref/source/index.rst | 1 + api-ref/source/watcher-api-v1-webhooks.inc | 26 ++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 api-ref/source/watcher-api-v1-webhooks.inc diff --git a/api-ref/source/index.rst b/api-ref/source/index.rst index 4373cd8b1..9c3117766 100644 --- a/api-ref/source/index.rst +++ b/api-ref/source/index.rst @@ -16,3 +16,4 @@ Watcher API .. include:: watcher-api-v1-services.inc .. include:: watcher-api-v1-scoring_engines.inc .. include:: watcher-api-v1-datamodel.inc +.. include:: watcher-api-v1-webhooks.inc diff --git a/api-ref/source/watcher-api-v1-webhooks.inc b/api-ref/source/watcher-api-v1-webhooks.inc new file mode 100644 index 000000000..583fbb8d7 --- /dev/null +++ b/api-ref/source/watcher-api-v1-webhooks.inc @@ -0,0 +1,26 @@ +.. -*- rst -*- + +======== +Webhooks +======== + +.. versionadded:: 1.4 + +Triggers an event based Audit. + + +Trigger EVENT Audit +=================== + +.. rest_method:: POST /v1/webhooks/{audit_ident} + +Normal response codes: 202 + +Error codes: 400,404 + +Request +------- + +.. rest_parameters:: parameters.yaml + + - audit_ident: audit_ident