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

@ -35,7 +35,7 @@ definitions:
merch.PriceEntry:
properties:
created_at:
type: string
type: integer
value:
type: integer
type: object
@ -257,7 +257,7 @@ paths:
get:
description: Получить цены мерча за период
parameters:
- description: merch_uuid
- description: period in days
in: query
name: days
type: string
@ -281,6 +281,37 @@ paths:
summary: Получить цены мерча за период
tags:
- Merch
/prices/{uuid}:
get:
description: Получить перепады цен мерча за период по его merch_uuid
parameters:
- description: merch_uuid
in: path
name: uuid
required: true
type: string
- description: period in days
in: query
name: days
type: string
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'
security:
- BearerAuth: []
summary: Получить перепады цен мерча за период по его merch_uuid
tags:
- Merch
/user:
delete:
description: Помечает пользователя как удаленного по его uuid из токена