swagger docs update

This commit is contained in:
nquidox 2025-12-15 18:15:28 +03:00
parent e9b58d171f
commit 895605e6b8
3 changed files with 141 additions and 117 deletions

View file

@ -15,51 +15,6 @@ const docTemplate = `{
"host": "{{.Host}}",
"basePath": "{{.BasePath}}",
"paths": {
"/merch": {
"post": {
"security": [
{
"BearerAuth": []
}
],
"description": "Добавить новый мерч",
"consumes": [
"application/json"
],
"tags": [
"Merch"
],
"summary": "Добавить новый мерч",
"parameters": [
{
"description": "новый мерч",
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/merch.MerchDTO"
}
}
],
"responses": {
"200": {
"description": "OK"
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/responses.ErrorResponse400"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/responses.ErrorResponse500"
}
}
}
}
},
"/merch/": {
"get": {
"security": [
@ -141,6 +96,49 @@ const docTemplate = `{
}
}
}
},
"post": {
"security": [
{
"BearerAuth": []
}
],
"description": "Добавить новый мерч",
"consumes": [
"application/json"
],
"tags": [
"Merch"
],
"summary": "Добавить новый мерч",
"parameters": [
{
"description": "новый мерч",
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/merch.MerchDTO"
}
}
],
"responses": {
"200": {
"description": "OK"
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/responses.ErrorResponse400"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/responses.ErrorResponse500"
}
}
}
}
},
"/merch/images/{uuid}": {
@ -1222,6 +1220,14 @@ const docTemplate = `{
}
}
},
"merch.AmiamiDTO": {
"type": "object",
"properties": {
"link": {
"type": "string"
}
}
},
"merch.DeleteZeroPrices": {
"type": "object",
"properties": {
@ -1326,6 +1332,9 @@ const docTemplate = `{
"name": {
"type": "string"
},
"origin_amiami": {
"$ref": "#/definitions/merch.AmiamiDTO"
},
"origin_mandarake": {
"$ref": "#/definitions/merch.MandarakeDTO"
},
@ -1417,7 +1426,7 @@ const docTemplate = `{
"type": "string"
},
"origins": {
"type": "string"
"type": "integer"
}
}
},