From 17f2039fc221b69befcc6e731fa91917cf769378 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Wed, 25 Sep 2024 10:57:44 +0800 Subject: [PATCH] Add delete to monitors/:monitorId doc --- Server/openapi.json | 51 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/Server/openapi.json b/Server/openapi.json index 8e71d07a0..e03ca93ac 100644 --- a/Server/openapi.json +++ b/Server/openapi.json @@ -881,6 +881,57 @@ "bearerAuth": [] } ] + }, + "delete": { + "tags": ["monitors"], + "description": "Delete monitor by id", + "parameters": [ + { + "name": "monitorId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SuccessResponse" + } + } + } + }, + "422": { + "description": "Unprocessable Content", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + }, + "security": [ + { + "bearerAuth": [] + } + ] } }, "/monitors/stats/{monitorId}": {