This commit is contained in:
parent
dec89435a3
commit
d23529e089
3 changed files with 559 additions and 95 deletions
|
|
@ -55,6 +55,17 @@ definitions:
|
|||
link:
|
||||
type: string
|
||||
type: object
|
||||
merch.UpdateMerchDTO:
|
||||
properties:
|
||||
link:
|
||||
type: string
|
||||
merch_uuid:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
origin:
|
||||
type: string
|
||||
type: object
|
||||
responses.ErrorResponse400:
|
||||
properties:
|
||||
error:
|
||||
|
|
@ -173,6 +184,31 @@ paths:
|
|||
summary: Получить все записи мерча
|
||||
tags:
|
||||
- Merch
|
||||
put:
|
||||
description: Обновить информацию про мерч по его uuid в json-е
|
||||
parameters:
|
||||
- description: merch_uuid
|
||||
in: body
|
||||
name: body
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/merch.UpdateMerchDTO'
|
||||
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
|
||||
/merch/{uuid}:
|
||||
delete:
|
||||
description: Пометить мерч как удаленный по его uuid
|
||||
|
|
@ -226,20 +262,25 @@ paths:
|
|||
summary: Получить всю информацию про мерч
|
||||
tags:
|
||||
- Merch
|
||||
put:
|
||||
description: Обновить информацию про мерч по его uuid в json-е
|
||||
/merch/images/{uuid}:
|
||||
delete:
|
||||
description: Удалить (безвозвратно) картинки по merch_uuid и query параметрам
|
||||
parameters:
|
||||
- description: merch_uuid
|
||||
in: body
|
||||
name: body
|
||||
in: path
|
||||
name: uuid
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/merch.MerchDTO'
|
||||
type: string
|
||||
- description: image type
|
||||
in: query
|
||||
name: type
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/merch.MerchDTO'
|
||||
$ref: '#/definitions/merch.PricesResponse'
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
|
|
@ -250,9 +291,82 @@ paths:
|
|||
$ref: '#/definitions/responses.ErrorResponse500'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: Обновить информацию про мерч
|
||||
summary: Удалить (безвозвратно) картинки по merch_uuid и query параметрам
|
||||
tags:
|
||||
- Merch
|
||||
- Merch images
|
||||
get:
|
||||
description: Получить картинки по merch_uuid и query параметрам
|
||||
parameters:
|
||||
- description: merch_uuid
|
||||
in: path
|
||||
name: uuid
|
||||
required: true
|
||||
type: string
|
||||
- description: image type
|
||||
in: query
|
||||
name: type
|
||||
required: true
|
||||
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 и query параметрам
|
||||
tags:
|
||||
- Merch images
|
||||
post:
|
||||
consumes:
|
||||
- multipart/form-data
|
||||
description: Загрузить картинки по merch_uuid и query параметрам
|
||||
parameters:
|
||||
- description: Merch UUID
|
||||
in: path
|
||||
name: uuid
|
||||
required: true
|
||||
type: string
|
||||
- description: Image file
|
||||
in: formData
|
||||
name: file
|
||||
required: true
|
||||
type: file
|
||||
- description: 'Image type: thumbnail, full or all'
|
||||
enum:
|
||||
- thumbnail
|
||||
- full
|
||||
- all
|
||||
in: formData
|
||||
name: imageType
|
||||
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: Загрузить картинки по merch_uuid и query параметрам
|
||||
tags:
|
||||
- Merch images
|
||||
/prices:
|
||||
get:
|
||||
description: Получить цены мерча за период
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue