swagger docs update
This commit is contained in:
parent
5952c8e320
commit
0d5d03ba0d
4 changed files with 121 additions and 8 deletions
|
|
@ -125,6 +125,29 @@ paths:
|
|||
summary: Добавить новый мерч
|
||||
tags:
|
||||
- Merch
|
||||
/merch/:
|
||||
get:
|
||||
description: Получить все записи мерча
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/definitions/merch.ListResponse'
|
||||
type: array
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/responses.ErrorResponse400'
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/responses.ErrorResponse500'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: Получить все записи мерча
|
||||
tags:
|
||||
- Merch
|
||||
/merch/{uuid}:
|
||||
delete:
|
||||
description: Пометить мерч как удаленный по его uuid
|
||||
|
|
@ -153,14 +176,18 @@ paths:
|
|||
tags:
|
||||
- Merch
|
||||
get:
|
||||
description: Получить все записи мерча
|
||||
description: Получить всю информацию про мерч по его uuid
|
||||
parameters:
|
||||
- description: merch_uuid
|
||||
in: path
|
||||
name: uuid
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/definitions/merch.ListResponse'
|
||||
type: array
|
||||
$ref: '#/definitions/merch.MerchDTO'
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
|
|
@ -171,7 +198,7 @@ paths:
|
|||
$ref: '#/definitions/responses.ErrorResponse500'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: Получить все записи мерча
|
||||
summary: Получить всю информацию про мерч
|
||||
tags:
|
||||
- Merch
|
||||
put:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue