From abffa881a88e141f332f94dde53bf1b514f4b24a Mon Sep 17 00:00:00 2001 From: maliangyi Date: Wed, 13 Sep 2023 14:34:20 +0800 Subject: [PATCH] Add request sample of API 'delete anomaly record' Change-Id: I16e2773a5570d3000c0ac57c3a4d0df7399978fd --- api-ref/source/v1/anomaly-detect.inc | 20 ++++++++++++------- .../delete-anomaly-record-request-curl.json | 3 +++ 2 files changed, 16 insertions(+), 7 deletions(-) create mode 100644 api-ref/source/v1/samples/anomaly-detect/delete-anomaly-record-request-curl.json diff --git a/api-ref/source/v1/anomaly-detect.inc b/api-ref/source/v1/anomaly-detect.inc index 1abf80e..3f7d800 100644 --- a/api-ref/source/v1/anomaly-detect.inc +++ b/api-ref/source/v1/anomaly-detect.inc @@ -265,6 +265,19 @@ Delete anomaly record Delete anomaly record. +Request +------- + +.. rest_parameters:: parameters.yaml + + - id: record_id + +**Example Get Anomaly record request:** + + +.. literalinclude:: ./samples/anomaly-detect/delete-anomaly-record-request-curl.json + :language: javascript + Response codes -------------- @@ -276,13 +289,6 @@ Response codes - -1 -Request -------- - -.. rest_parameters:: parameters.yaml - - - id: record_id - Response -------- diff --git a/api-ref/source/v1/samples/anomaly-detect/delete-anomaly-record-request-curl.json b/api-ref/source/v1/samples/anomaly-detect/delete-anomaly-record-request-curl.json new file mode 100644 index 0000000..425ba38 --- /dev/null +++ b/api-ref/source/v1/samples/anomaly-detect/delete-anomaly-record-request-curl.json @@ -0,0 +1,3 @@ +curl -X DELETE "http://10.49.38.57:10010/v1/anomaly/record/1" \ + -H 'X-Auth-Token: 124' + -H 'Content-type: application/json' \ No newline at end of file