This commit is contained in:
parent
2728051fde
commit
7fa79d770a
4 changed files with 114 additions and 54 deletions
31
docs/docs.go
31
docs/docs.go
|
|
@ -106,6 +106,9 @@ const docTemplate = `{
|
|||
}
|
||||
],
|
||||
"description": "Обновить информацию про мерч по его uuid в json-е",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Merch"
|
||||
],
|
||||
|
|
@ -331,6 +334,9 @@ const docTemplate = `{
|
|||
}
|
||||
],
|
||||
"description": "Создать новую метку для товара",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Merch labels"
|
||||
],
|
||||
|
|
@ -373,6 +379,9 @@ const docTemplate = `{
|
|||
}
|
||||
],
|
||||
"description": "Прикрепить метку к товару",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Merch labels"
|
||||
],
|
||||
|
|
@ -415,6 +424,9 @@ const docTemplate = `{
|
|||
}
|
||||
],
|
||||
"description": "Удалить привязку метки к товару",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Merch labels"
|
||||
],
|
||||
|
|
@ -498,6 +510,9 @@ const docTemplate = `{
|
|||
}
|
||||
],
|
||||
"description": "Изменить метку",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Merch labels"
|
||||
],
|
||||
|
|
@ -623,6 +638,9 @@ const docTemplate = `{
|
|||
}
|
||||
],
|
||||
"description": "Пометить нулевые цены как удаленные",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Merch zero prices"
|
||||
],
|
||||
|
|
@ -1160,11 +1178,11 @@ const docTemplate = `{
|
|||
"merch.DeleteZeroPrices": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"merch_uuids": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
"id": {
|
||||
"type": "integer"
|
||||
},
|
||||
"merch_uuid": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -1342,6 +1360,9 @@ const docTemplate = `{
|
|||
"created_at": {
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"type": "integer"
|
||||
},
|
||||
"merch_uuid": {
|
||||
"type": "string"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -98,6 +98,9 @@
|
|||
}
|
||||
],
|
||||
"description": "Обновить информацию про мерч по его uuid в json-е",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Merch"
|
||||
],
|
||||
|
|
@ -323,6 +326,9 @@
|
|||
}
|
||||
],
|
||||
"description": "Создать новую метку для товара",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Merch labels"
|
||||
],
|
||||
|
|
@ -365,6 +371,9 @@
|
|||
}
|
||||
],
|
||||
"description": "Прикрепить метку к товару",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Merch labels"
|
||||
],
|
||||
|
|
@ -407,6 +416,9 @@
|
|||
}
|
||||
],
|
||||
"description": "Удалить привязку метки к товару",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Merch labels"
|
||||
],
|
||||
|
|
@ -490,6 +502,9 @@
|
|||
}
|
||||
],
|
||||
"description": "Изменить метку",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Merch labels"
|
||||
],
|
||||
|
|
@ -615,6 +630,9 @@
|
|||
}
|
||||
],
|
||||
"description": "Пометить нулевые цены как удаленные",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Merch zero prices"
|
||||
],
|
||||
|
|
@ -1152,11 +1170,11 @@
|
|||
"merch.DeleteZeroPrices": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"merch_uuids": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
"id": {
|
||||
"type": "integer"
|
||||
},
|
||||
"merch_uuid": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -1334,6 +1352,9 @@
|
|||
"created_at": {
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"type": "integer"
|
||||
},
|
||||
"merch_uuid": {
|
||||
"type": "string"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -9,10 +9,10 @@ definitions:
|
|||
type: object
|
||||
merch.DeleteZeroPrices:
|
||||
properties:
|
||||
merch_uuids:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
id:
|
||||
type: integer
|
||||
merch_uuid:
|
||||
type: string
|
||||
type: object
|
||||
merch.ImageLink:
|
||||
properties:
|
||||
|
|
@ -126,6 +126,8 @@ definitions:
|
|||
properties:
|
||||
created_at:
|
||||
type: string
|
||||
id:
|
||||
type: integer
|
||||
merch_uuid:
|
||||
type: string
|
||||
name:
|
||||
|
|
@ -254,6 +256,8 @@ paths:
|
|||
tags:
|
||||
- Merch
|
||||
put:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Обновить информацию про мерч по его uuid в json-е
|
||||
parameters:
|
||||
- description: merch_uuid
|
||||
|
|
@ -453,6 +457,8 @@ paths:
|
|||
tags:
|
||||
- Merch labels
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Создать новую метку для товара
|
||||
parameters:
|
||||
- description: payload
|
||||
|
|
@ -529,6 +535,8 @@ paths:
|
|||
tags:
|
||||
- Merch labels
|
||||
put:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Изменить метку
|
||||
parameters:
|
||||
- description: label uuid
|
||||
|
|
@ -560,6 +568,8 @@ paths:
|
|||
- Merch labels
|
||||
/merch/labels/attach:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Прикрепить метку к товару
|
||||
parameters:
|
||||
- description: payload
|
||||
|
|
@ -586,6 +596,8 @@ paths:
|
|||
- Merch labels
|
||||
/merch/labels/detach:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Удалить привязку метки к товару
|
||||
parameters:
|
||||
- description: payload
|
||||
|
|
@ -612,6 +624,8 @@ paths:
|
|||
- Merch labels
|
||||
/merch/zeroprices:
|
||||
delete:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Пометить нулевые цены как удаленные
|
||||
parameters:
|
||||
- description: payload
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue