swagger docs update
This commit is contained in:
parent
d997d8bfa4
commit
f9eac067be
3 changed files with 124 additions and 0 deletions
47
docs/docs.go
47
docs/docs.go
|
|
@ -675,6 +675,53 @@ const docTemplate = `{
|
|||
}
|
||||
}
|
||||
},
|
||||
"/merch/zeroprices/period": {
|
||||
"delete": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Пометить нулевые цены как удаленные за указанный период",
|
||||
"tags": [
|
||||
"Merch zero prices"
|
||||
],
|
||||
"summary": "Пометить нулевые цены как удаленные за указанный период",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "start",
|
||||
"name": "start",
|
||||
"in": "query",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "end",
|
||||
"name": "end",
|
||||
"in": "query",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK"
|
||||
},
|
||||
"400": {
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/responses.ErrorResponse400"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/responses.ErrorResponse500"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/merch/{uuid}": {
|
||||
"get": {
|
||||
"security": [
|
||||
|
|
|
|||
|
|
@ -667,6 +667,53 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"/merch/zeroprices/period": {
|
||||
"delete": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Пометить нулевые цены как удаленные за указанный период",
|
||||
"tags": [
|
||||
"Merch zero prices"
|
||||
],
|
||||
"summary": "Пометить нулевые цены как удаленные за указанный период",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "start",
|
||||
"name": "start",
|
||||
"in": "query",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "end",
|
||||
"name": "end",
|
||||
"in": "query",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK"
|
||||
},
|
||||
"400": {
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/responses.ErrorResponse400"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/responses.ErrorResponse500"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/merch/{uuid}": {
|
||||
"get": {
|
||||
"security": [
|
||||
|
|
|
|||
|
|
@ -674,6 +674,36 @@ paths:
|
|||
summary: Получить нулевые цены
|
||||
tags:
|
||||
- Merch zero prices
|
||||
/merch/zeroprices/period:
|
||||
delete:
|
||||
description: Пометить нулевые цены как удаленные за указанный период
|
||||
parameters:
|
||||
- description: start
|
||||
in: query
|
||||
name: start
|
||||
required: true
|
||||
type: string
|
||||
- description: end
|
||||
in: query
|
||||
name: end
|
||||
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 zero prices
|
||||
/prices:
|
||||
get:
|
||||
description: Получить цены мерча за период
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue