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.
This commit is contained in:
Leonid Nikitin 2023-08-23 21:56:06 +06:00
parent 9bfd3fef1a
commit d72d6ff614
Signed by: kor-elf
GPG Key ID: 7DE8F80C5CEC2C0D

View File

@ -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"