swagger docs update
This commit is contained in:
parent
5952c8e320
commit
0d5d03ba0d
4 changed files with 121 additions and 8 deletions
45
docs/docs.go
45
docs/docs.go
|
|
@ -60,7 +60,7 @@ const docTemplate = `{
|
|||
}
|
||||
}
|
||||
},
|
||||
"/merch/{uuid}": {
|
||||
"/merch/": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
|
|
@ -95,6 +95,49 @@ const docTemplate = `{
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/merch/{uuid}": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Получить всю информацию про мерч по его uuid",
|
||||
"tags": [
|
||||
"Merch"
|
||||
],
|
||||
"summary": "Получить всю информацию про мерч",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "merch_uuid",
|
||||
"name": "uuid",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/merch.MerchDTO"
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/responses.ErrorResponse400"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/responses.ErrorResponse500"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"put": {
|
||||
"security": [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue