From d72d6ff61496cb265dc5446cd0534da03cfa6d22 Mon Sep 17 00:00:00 2001 From: Leonid Nikitin Date: Wed, 23 Aug 2023 21:56:06 +0600 Subject: [PATCH] Update swagger.json for accurate API path. The "servers" section was deleted and the "/api/v1" part was added to "paths" values for a more refined URL structure. This change makes it more clear that the API version is part of the API route. --- public/swagger.json | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/public/swagger.json b/public/swagger.json index 29a45f2..37c1f3c 100644 --- a/public/swagger.json +++ b/public/swagger.json @@ -5,11 +5,6 @@ "description": "API Documentation.", "version": "1.0.0" }, - "servers": [ - { - "url": "/api/v1" - } - ], "tags": [ { "name": "captcha", @@ -17,7 +12,7 @@ } ], "paths": { - "/captcha": { + "/api/v1/captcha": { "get": { "tags": [ "captcha" @@ -105,7 +100,7 @@ } } }, - "/captcha/{captcha_key}": { + "/api/v1/captcha/{captcha_key}": { "get": { "tags": [ "captcha"