swagger docs update

This commit is contained in:
nquidox 2025-10-26 19:54:51 +03:00
parent f13012b742
commit 37a1dfbf52
3 changed files with 52 additions and 47 deletions

View file

@ -192,7 +192,7 @@ const docTemplate = `{
"BearerAuth": []
}
],
"description": "Загрузить картинки по merch_uuid и query параметрам",
"description": "Загрузить картинку по merch_uuid. В ответ будут выданы ссылки на созданные картинки.",
"consumes": [
"multipart/form-data"
],
@ -202,7 +202,7 @@ const docTemplate = `{
"tags": [
"Merch images"
],
"summary": "Загрузить картинки по merch_uuid и query параметрам",
"summary": "Загрузить картинку по merch_uuid",
"parameters": [
{
"type": "string",
@ -217,23 +217,14 @@ const docTemplate = `{
"name": "file",
"in": "formData",
"required": true
},
{
"enum": [
"thumbnail",
"full",
"all"
],
"type": "string",
"description": "Image type: thumbnail, full or all",
"name": "imageType",
"in": "formData",
"required": true
}
],
"responses": {
"200": {
"description": "OK"
"description": "OK",
"schema": {
"$ref": "#/definitions/imageStorage.UploadMerchImageResponse"
}
},
"400": {
"description": "Bad Request",
@ -255,11 +246,11 @@ const docTemplate = `{
"BearerAuth": []
}
],
"description": "Удалить (безвозвратно) картинки по merch_uuid и query параметрам",
"description": "Удалить (безвозвратно) картинки по merch_uuid",
"tags": [
"Merch images"
],
"summary": "Удалить (безвозвратно) картинки по merch_uuid и query параметрам",
"summary": "Удалить (безвозвратно) картинки по merch_uuid",
"parameters": [
{
"type": "string",
@ -768,6 +759,17 @@ const docTemplate = `{
}
},
"definitions": {
"imageStorage.UploadMerchImageResponse": {
"type": "object",
"properties": {
"fullImage": {
"type": "string"
},
"thumbnail": {
"type": "string"
}
}
},
"merch.ImageLink": {
"type": "object",
"properties": {