From fd483b1857560d070f4b6a29ed0e692105c0987f Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Tue, 24 Sep 2024 15:23:40 +0800 Subject: [PATCH] Add get certificate by monitor ID to docs --- Server/openapi.json | 53 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/Server/openapi.json b/Server/openapi.json index a4129a8ba..7956c2f75 100644 --- a/Server/openapi.json +++ b/Server/openapi.json @@ -791,6 +791,59 @@ } ] } + }, + "/monitors/certificate/{monitorId}": { + "get": { + "tags": ["monitors"], + "description": "Get monitor certificate", + "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": [] + } + ] + } } },