From 3de2106c70a796032c456accb67ef1f2880aba80 Mon Sep 17 00:00:00 2001 From: om-3004 Date: Thu, 17 Oct 2024 10:09:50 +0530 Subject: [PATCH] Add api documentation for check resolution endpoint create --- Server/openapi.json | 55 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/Server/openapi.json b/Server/openapi.json index 6d079e685..aeb7285a8 100644 --- a/Server/openapi.json +++ b/Server/openapi.json @@ -845,6 +845,61 @@ ] } }, + "/monitors//check-endpoint/url": { + "get": { + "tags": ["monitors"], + "description": "Check DNS resolution for a given URL", + "parameters": [ + { + "name": "monitorURL", + "in": "query", + "required": true, + "schema": { + "type": "string", + "example": "https://example.com" + }, + "description": "The URL to check DNS resolution for" + } + ], + "responses": { + "200": { + "description": "URL resolved successfully", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SuccessResponse" + } + } + } + }, + "400": { + "description": "DNS resolution failed", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + }, + "security": [ + { + "bearerAuth": [] + } + ] + } + }, "/monitors/{monitorId}": { "get": { "tags": ["monitors"],