swagger docs update
This commit is contained in:
parent
ba78dd9772
commit
9dd51419bd
3 changed files with 229 additions and 8 deletions
|
|
@ -216,6 +216,51 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"/prices": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Получить цены мерча за период",
|
||||
"tags": [
|
||||
"Merch"
|
||||
],
|
||||
"summary": "Получить цены мерча за период",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "merch_uuid",
|
||||
"name": "days",
|
||||
"in": "query"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/merch.PricesResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/responses.ErrorResponse400"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/responses.ErrorResponse500"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/user": {
|
||||
"get": {
|
||||
"security": [
|
||||
|
|
@ -554,12 +599,51 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"merch.OriginWithPrices": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"origin": {
|
||||
"type": "integer"
|
||||
},
|
||||
"prices": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/merch.PriceEntry"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"merch.PriceEntry": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"created_at": {
|
||||
"type": "string"
|
||||
},
|
||||
"value": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"merch.PricesResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"merch_uuid": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"origins": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/merch.OriginWithPrices"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"merch.SurugayaDTO": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"cookie_values": {
|
||||
"type": "string"
|
||||
},
|
||||
"link": {
|
||||
"type": "string"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue