swagger docs update

This commit is contained in:
nquidox 2025-09-26 20:16:30 +03:00
parent 77c678dd7a
commit e3f893ac2d
3 changed files with 135 additions and 6 deletions

View file

@ -239,7 +239,7 @@ const docTemplate = `{
"parameters": [
{
"type": "string",
"description": "merch_uuid",
"description": "period in days",
"name": "days",
"in": "query"
}
@ -269,6 +269,55 @@ const docTemplate = `{
}
}
},
"/prices/{uuid}": {
"get": {
"security": [
{
"BearerAuth": []
}
],
"description": "Получить перепады цен мерча за период по его merch_uuid",
"tags": [
"Merch"
],
"summary": "Получить перепады цен мерча за период по его merch_uuid",
"parameters": [
{
"type": "string",
"description": "merch_uuid",
"name": "uuid",
"in": "path",
"required": true
},
{
"type": "string",
"description": "period in days",
"name": "days",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/merch.PricesResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/responses.ErrorResponse400"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/responses.ErrorResponse500"
}
}
}
}
},
"/user": {
"get": {
"security": [
@ -625,7 +674,7 @@ const docTemplate = `{
"type": "object",
"properties": {
"created_at": {
"type": "string"
"type": "integer"
},
"value": {
"type": "integer"