swagger docs update
This commit is contained in:
parent
03e114db0b
commit
a6e6917bac
3 changed files with 213 additions and 0 deletions
|
|
@ -7,6 +7,51 @@
|
|||
},
|
||||
"basePath": "/api/v2",
|
||||
"paths": {
|
||||
"/merch": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Добавить новый мерч",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Merch"
|
||||
],
|
||||
"summary": "Добавить новый мерч",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "новый мерч",
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/merch.MerchDTO"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK"
|
||||
},
|
||||
"400": {
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/responses.ErrorResponse400"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/responses.ErrorResponse500"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/user": {
|
||||
"get": {
|
||||
"security": [
|
||||
|
|
@ -309,6 +354,42 @@
|
|||
}
|
||||
},
|
||||
"definitions": {
|
||||
"merch.MandarakeDTO": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"link": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"merch.MerchDTO": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"merch_uuid": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"origin_mandarake": {
|
||||
"$ref": "#/definitions/merch.MandarakeDTO"
|
||||
},
|
||||
"origin_surugaya": {
|
||||
"$ref": "#/definitions/merch.SurugayaDTO"
|
||||
}
|
||||
}
|
||||
},
|
||||
"merch.SurugayaDTO": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"cookie_values": {
|
||||
"type": "string"
|
||||
},
|
||||
"link": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"responses.ErrorResponse400": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue