From db4dbc6a5f6be5a4aeee8f7388477deaecfdacef Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Tue, 24 Sep 2024 15:38:27 +0800 Subject: [PATCH] Add getMonitorsAndSummaryByTeamID to docs --- Server/openapi.json | 62 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/Server/openapi.json b/Server/openapi.json index 595f2a0ce..ef6a8ae2c 100644 --- a/Server/openapi.json +++ b/Server/openapi.json @@ -897,6 +897,68 @@ } ] } + }, + "/monitors/team/summary/{teamId}": { + "get": { + "tags": ["monitors"], + "description": "Get monitors and summary by teamId", + "parameters": [ + { + "name": "teamId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "type", + "in": "query", + "required": false, + "schema": { + "type": "array", + "enum": ["http", "ping", "pagespeed"] + } + } + ], + "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": [] + } + ] + } } },