swagger docs update
This commit is contained in:
parent
93ce93770d
commit
a0e21db5a0
3 changed files with 472 additions and 0 deletions
|
|
@ -7,6 +7,13 @@ definitions:
|
|||
thumbnail:
|
||||
type: string
|
||||
type: object
|
||||
merch.DeleteZeroPrices:
|
||||
properties:
|
||||
merch_uuids:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
type: object
|
||||
merch.ImageLink:
|
||||
properties:
|
||||
etag:
|
||||
|
|
@ -43,6 +50,10 @@ definitions:
|
|||
type: object
|
||||
merch.ListResponse:
|
||||
properties:
|
||||
labels:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
merch_uuid:
|
||||
type: string
|
||||
name:
|
||||
|
|
@ -55,6 +66,10 @@ definitions:
|
|||
type: object
|
||||
merch.MerchDTO:
|
||||
properties:
|
||||
labels:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
merch_uuid:
|
||||
type: string
|
||||
name:
|
||||
|
|
@ -107,6 +122,17 @@ definitions:
|
|||
origin:
|
||||
type: string
|
||||
type: object
|
||||
merch.ZeroPrice:
|
||||
properties:
|
||||
created_at:
|
||||
type: string
|
||||
merch_uuid:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
origin:
|
||||
type: string
|
||||
type: object
|
||||
responses.ErrorResponse400:
|
||||
properties:
|
||||
error:
|
||||
|
|
@ -205,6 +231,8 @@ paths:
|
|||
/merch/:
|
||||
get:
|
||||
description: Получить все записи мерча
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
|
|
@ -285,6 +313,8 @@ paths:
|
|||
name: uuid
|
||||
required: true
|
||||
type: string
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
|
|
@ -341,6 +371,8 @@ paths:
|
|||
name: type
|
||||
required: true
|
||||
type: string
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
|
|
@ -398,6 +430,8 @@ paths:
|
|||
/merch/labels:
|
||||
get:
|
||||
description: Получить все метки товаров
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
|
|
@ -468,6 +502,32 @@ paths:
|
|||
summary: Пометить метку как удаленную
|
||||
tags:
|
||||
- Merch labels
|
||||
get:
|
||||
description: Получить метки товара по его uuid
|
||||
parameters:
|
||||
- description: label uuid
|
||||
in: path
|
||||
name: uuid
|
||||
required: true
|
||||
type: string
|
||||
produces:
|
||||
- application/json
|
||||
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: Получить метки товара по его uuid
|
||||
tags:
|
||||
- Merch labels
|
||||
put:
|
||||
description: Изменить метку
|
||||
parameters:
|
||||
|
|
@ -550,6 +610,56 @@ paths:
|
|||
summary: Удалить привязку метки к товару
|
||||
tags:
|
||||
- Merch labels
|
||||
/merch/zeroprices:
|
||||
delete:
|
||||
description: Пометить нулевые цены как удаленные
|
||||
parameters:
|
||||
- description: payload
|
||||
in: body
|
||||
name: payload
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/merch.DeleteZeroPrices'
|
||||
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 zero prices
|
||||
get:
|
||||
description: Получить нулевые цены
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/definitions/merch.ZeroPrice'
|
||||
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 zero prices
|
||||
/prices:
|
||||
get:
|
||||
description: Получить цены мерча за период
|
||||
|
|
@ -558,6 +668,8 @@ paths:
|
|||
in: query
|
||||
name: days
|
||||
type: string
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
|
|
@ -591,6 +703,8 @@ paths:
|
|||
in: query
|
||||
name: days
|
||||
type: string
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue