swagger docs update
This commit is contained in:
parent
ea33cdc9f5
commit
229eebcf66
4 changed files with 411 additions and 54 deletions
|
|
@ -34,17 +34,6 @@ definitions:
|
|||
name:
|
||||
type: string
|
||||
type: object
|
||||
merch.ListResponse:
|
||||
properties:
|
||||
labels:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
merch_uuid:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
type: object
|
||||
merch.OriginWithPrices:
|
||||
properties:
|
||||
origin:
|
||||
|
|
@ -99,6 +88,17 @@ definitions:
|
|||
merch_uuid:
|
||||
type: string
|
||||
type: object
|
||||
merch.listResponse:
|
||||
properties:
|
||||
labels:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
merch_uuid:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
type: object
|
||||
merch.merchDTO:
|
||||
properties:
|
||||
created_at:
|
||||
|
|
@ -145,6 +145,17 @@ definitions:
|
|||
$ref: '#/definitions/merch.originItem'
|
||||
type: array
|
||||
type: object
|
||||
merch.singleMerchResponse:
|
||||
properties:
|
||||
merch_uuid:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
origins:
|
||||
items:
|
||||
$ref: '#/definitions/merch.originLink'
|
||||
type: array
|
||||
type: object
|
||||
merch.updateMerchDTO:
|
||||
properties:
|
||||
merch_uuid:
|
||||
|
|
@ -205,6 +216,38 @@ paths:
|
|||
summary: Delete merch
|
||||
tags:
|
||||
- Merch
|
||||
get:
|
||||
description: Получить всю информацию про мерч по его uuid
|
||||
parameters:
|
||||
- description: merch_uuid
|
||||
in: path
|
||||
name: uuid
|
||||
required: true
|
||||
type: string
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/merch.singleMerchResponse'
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/responses.BadRequest'
|
||||
"401":
|
||||
description: Unauthorized
|
||||
schema:
|
||||
$ref: '#/definitions/responses.Unauthorized'
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/responses.InternalServerError'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: Получить всю информацию про мерч
|
||||
tags:
|
||||
- Merch
|
||||
put:
|
||||
consumes:
|
||||
- application/json
|
||||
|
|
@ -541,7 +584,7 @@ paths:
|
|||
description: OK
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/definitions/merch.ListResponse'
|
||||
$ref: '#/definitions/merch.listResponse'
|
||||
type: array
|
||||
"204":
|
||||
description: No Content
|
||||
|
|
@ -804,4 +847,49 @@ paths:
|
|||
summary: Получить перепады цен мерча за период по его merch_uuid
|
||||
tags:
|
||||
- Merch
|
||||
/user:
|
||||
delete:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Marks user as deleted by user uuid
|
||||
responses:
|
||||
"204":
|
||||
description: No Content
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/responses.BadRequest'
|
||||
"401":
|
||||
description: Unauthorized
|
||||
schema:
|
||||
$ref: '#/definitions/responses.Unauthorized'
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/responses.InternalServerError'
|
||||
summary: Delete user
|
||||
tags:
|
||||
- User
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Adds local user record based on user uuid from auth service
|
||||
responses:
|
||||
"201":
|
||||
description: Created
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/responses.BadRequest'
|
||||
"401":
|
||||
description: Unauthorized
|
||||
schema:
|
||||
$ref: '#/definitions/responses.Unauthorized'
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/responses.InternalServerError'
|
||||
summary: Create new user
|
||||
tags:
|
||||
- User
|
||||
swagger: "2.0"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue