swagger docs update
This commit is contained in:
parent
f7ec1bce1e
commit
565e019a67
3 changed files with 762 additions and 0 deletions
|
|
@ -14,6 +14,33 @@ definitions:
|
|||
link:
|
||||
type: string
|
||||
type: object
|
||||
merch.LabelDTO:
|
||||
properties:
|
||||
bg_color:
|
||||
type: string
|
||||
color:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
type: object
|
||||
merch.LabelLink:
|
||||
properties:
|
||||
label_uuid:
|
||||
type: string
|
||||
merch_uuid:
|
||||
type: string
|
||||
type: object
|
||||
merch.LabelsList:
|
||||
properties:
|
||||
bg_color:
|
||||
type: string
|
||||
color:
|
||||
type: string
|
||||
label_uuid:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
type: object
|
||||
merch.ListResponse:
|
||||
properties:
|
||||
merch_uuid:
|
||||
|
|
@ -368,6 +395,161 @@ paths:
|
|||
summary: Загрузить картинку по merch_uuid
|
||||
tags:
|
||||
- Merch images
|
||||
/merch/labels:
|
||||
get:
|
||||
description: Получить все метки товаров
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/definitions/merch.LabelsList'
|
||||
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 labels
|
||||
post:
|
||||
description: Создать новую метку для товара
|
||||
parameters:
|
||||
- description: payload
|
||||
in: body
|
||||
name: payload
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/merch.LabelDTO'
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/responses.ErrorResponse400'
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/responses.ErrorResponse500'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: Создать новую метку для товара
|
||||
tags:
|
||||
- Merch labels
|
||||
/merch/labels/{uuid}:
|
||||
delete:
|
||||
description: Пометить метку как удаленную
|
||||
parameters:
|
||||
- description: label uuid
|
||||
in: path
|
||||
name: uuid
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/responses.ErrorResponse400'
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/responses.ErrorResponse500'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: Пометить метку как удаленную
|
||||
tags:
|
||||
- Merch labels
|
||||
put:
|
||||
description: Изменить метку
|
||||
parameters:
|
||||
- description: label uuid
|
||||
in: path
|
||||
name: uuid
|
||||
required: true
|
||||
type: string
|
||||
- description: payload
|
||||
in: body
|
||||
name: payload
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/merch.LabelDTO'
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/responses.ErrorResponse400'
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/responses.ErrorResponse500'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: Изменить метку
|
||||
tags:
|
||||
- Merch labels
|
||||
/merch/labels/attach:
|
||||
post:
|
||||
description: Прикрепить метку к товару
|
||||
parameters:
|
||||
- description: payload
|
||||
in: body
|
||||
name: payload
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/merch.LabelLink'
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/responses.ErrorResponse400'
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/responses.ErrorResponse500'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: Прикрепить метку к товару
|
||||
tags:
|
||||
- Merch labels
|
||||
/merch/labels/detach:
|
||||
post:
|
||||
description: Удалить привязку метки к товару
|
||||
parameters:
|
||||
- description: payload
|
||||
in: body
|
||||
name: payload
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/merch.LabelLink'
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/responses.ErrorResponse400'
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/responses.ErrorResponse500'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: Удалить привязку метки к товару
|
||||
tags:
|
||||
- Merch labels
|
||||
/prices:
|
||||
get:
|
||||
description: Получить цены мерча за период
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue