This commit is contained in:
parent
cf84b598d0
commit
756d664be7
4 changed files with 81 additions and 56 deletions
51
docs/docs.go
51
docs/docs.go
|
|
@ -319,31 +319,23 @@ const docTemplate = `{
|
||||||
},
|
},
|
||||||
"/merch/labels/{uuid}": {
|
"/merch/labels/{uuid}": {
|
||||||
"get": {
|
"get": {
|
||||||
"security": [
|
"description": "Получить персональные данные. Запрос данных по gRPC у сервиса авторизации.",
|
||||||
{
|
|
||||||
"BearerAuth": []
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"description": "Получить метки товара по его uuid",
|
|
||||||
"produces": [
|
"produces": [
|
||||||
"application/json"
|
"application/json"
|
||||||
],
|
],
|
||||||
"tags": [
|
"tags": [
|
||||||
"Merch labels"
|
"User"
|
||||||
],
|
|
||||||
"summary": "Получить метки товара по его uuid",
|
|
||||||
"parameters": [
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"description": "label uuid",
|
|
||||||
"name": "uuid",
|
|
||||||
"in": "path",
|
|
||||||
"required": true
|
|
||||||
}
|
|
||||||
],
|
],
|
||||||
|
"summary": "Получить персональные данные.",
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "OK"
|
"description": "OK",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/common.PersonalDTO"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"204": {
|
||||||
|
"description": "No Content"
|
||||||
},
|
},
|
||||||
"400": {
|
"400": {
|
||||||
"description": "Bad Request",
|
"description": "Bad Request",
|
||||||
|
|
@ -889,9 +881,6 @@ const docTemplate = `{
|
||||||
},
|
},
|
||||||
"delete": {
|
"delete": {
|
||||||
"description": "Marks merch and all its extra data as deleted by uuid.",
|
"description": "Marks merch and all its extra data as deleted by uuid.",
|
||||||
"consumes": [
|
|
||||||
"application/json"
|
|
||||||
],
|
|
||||||
"tags": [
|
"tags": [
|
||||||
"Merch"
|
"Merch"
|
||||||
],
|
],
|
||||||
|
|
@ -1114,6 +1103,26 @@ const docTemplate = `{
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"definitions": {
|
"definitions": {
|
||||||
|
"common.PersonalDTO": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"email": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"surname": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"username": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"uuid": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"merch.DeleteZeroPrices": {
|
"merch.DeleteZeroPrices": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
|
|
||||||
|
|
@ -312,31 +312,23 @@
|
||||||
},
|
},
|
||||||
"/merch/labels/{uuid}": {
|
"/merch/labels/{uuid}": {
|
||||||
"get": {
|
"get": {
|
||||||
"security": [
|
"description": "Получить персональные данные. Запрос данных по gRPC у сервиса авторизации.",
|
||||||
{
|
|
||||||
"BearerAuth": []
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"description": "Получить метки товара по его uuid",
|
|
||||||
"produces": [
|
"produces": [
|
||||||
"application/json"
|
"application/json"
|
||||||
],
|
],
|
||||||
"tags": [
|
"tags": [
|
||||||
"Merch labels"
|
"User"
|
||||||
],
|
|
||||||
"summary": "Получить метки товара по его uuid",
|
|
||||||
"parameters": [
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"description": "label uuid",
|
|
||||||
"name": "uuid",
|
|
||||||
"in": "path",
|
|
||||||
"required": true
|
|
||||||
}
|
|
||||||
],
|
],
|
||||||
|
"summary": "Получить персональные данные.",
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "OK"
|
"description": "OK",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/common.PersonalDTO"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"204": {
|
||||||
|
"description": "No Content"
|
||||||
},
|
},
|
||||||
"400": {
|
"400": {
|
||||||
"description": "Bad Request",
|
"description": "Bad Request",
|
||||||
|
|
@ -882,9 +874,6 @@
|
||||||
},
|
},
|
||||||
"delete": {
|
"delete": {
|
||||||
"description": "Marks merch and all its extra data as deleted by uuid.",
|
"description": "Marks merch and all its extra data as deleted by uuid.",
|
||||||
"consumes": [
|
|
||||||
"application/json"
|
|
||||||
],
|
|
||||||
"tags": [
|
"tags": [
|
||||||
"Merch"
|
"Merch"
|
||||||
],
|
],
|
||||||
|
|
@ -1107,6 +1096,26 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"definitions": {
|
"definitions": {
|
||||||
|
"common.PersonalDTO": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"email": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"surname": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"username": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"uuid": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"merch.DeleteZeroPrices": {
|
"merch.DeleteZeroPrices": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,18 @@
|
||||||
basePath: /api/v2
|
basePath: /api/v2
|
||||||
definitions:
|
definitions:
|
||||||
|
common.PersonalDTO:
|
||||||
|
properties:
|
||||||
|
email:
|
||||||
|
type: string
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
surname:
|
||||||
|
type: string
|
||||||
|
username:
|
||||||
|
type: string
|
||||||
|
uuid:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
merch.DeleteZeroPrices:
|
merch.DeleteZeroPrices:
|
||||||
properties:
|
properties:
|
||||||
id:
|
id:
|
||||||
|
|
@ -200,8 +213,6 @@ info:
|
||||||
paths:
|
paths:
|
||||||
/merch/{uuid}:
|
/merch/{uuid}:
|
||||||
delete:
|
delete:
|
||||||
consumes:
|
|
||||||
- application/json
|
|
||||||
description: Marks merch and all its extra data as deleted by uuid.
|
description: Marks merch and all its extra data as deleted by uuid.
|
||||||
parameters:
|
parameters:
|
||||||
- description: merch uuid
|
- description: merch uuid
|
||||||
|
|
@ -456,18 +467,16 @@ paths:
|
||||||
tags:
|
tags:
|
||||||
- Merch labels
|
- Merch labels
|
||||||
get:
|
get:
|
||||||
description: Получить метки товара по его uuid
|
description: Получить персональные данные. Запрос данных по gRPC у сервиса авторизации.
|
||||||
parameters:
|
|
||||||
- description: label uuid
|
|
||||||
in: path
|
|
||||||
name: uuid
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
produces:
|
produces:
|
||||||
- application/json
|
- application/json
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: OK
|
description: OK
|
||||||
|
schema:
|
||||||
|
$ref: '#/definitions/common.PersonalDTO'
|
||||||
|
"204":
|
||||||
|
description: No Content
|
||||||
"400":
|
"400":
|
||||||
description: Bad Request
|
description: Bad Request
|
||||||
schema:
|
schema:
|
||||||
|
|
@ -480,11 +489,9 @@ paths:
|
||||||
description: Internal Server Error
|
description: Internal Server Error
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/definitions/responses.InternalServerError'
|
$ref: '#/definitions/responses.InternalServerError'
|
||||||
security:
|
summary: Получить персональные данные.
|
||||||
- BearerAuth: []
|
|
||||||
summary: Получить метки товара по его uuid
|
|
||||||
tags:
|
tags:
|
||||||
- Merch labels
|
- User
|
||||||
put:
|
put:
|
||||||
consumes:
|
consumes:
|
||||||
- application/json
|
- application/json
|
||||||
|
|
|
||||||
|
|
@ -130,7 +130,7 @@ func (co *controller) me(c *gin.Context) {
|
||||||
// @Tags User
|
// @Tags User
|
||||||
// @Produce json
|
// @Produce json
|
||||||
// @Success 200 {object} common.PersonalDTO
|
// @Success 200 {object} common.PersonalDTO
|
||||||
// @Success 204 {object}
|
// @Success 204
|
||||||
// @Failure 400 {object} responses.BadRequest
|
// @Failure 400 {object} responses.BadRequest
|
||||||
// @Failure 401 {object} responses.Unauthorized
|
// @Failure 401 {object} responses.Unauthorized
|
||||||
// @Failure 500 {object} responses.InternalServerError
|
// @Failure 500 {object} responses.InternalServerError
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue