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

@ -1,5 +1,12 @@
basePath: /api/v2
definitions:
imageStorage.UploadMerchImageResponse:
properties:
fullImage:
type: string
thumbnail:
type: string
type: object
merch.ImageLink:
properties:
etag:
@ -271,7 +278,7 @@ paths:
- Merch
/merch/images/{uuid}:
delete:
description: Удалить (безвозвратно) картинки по merch_uuid и query параметрам
description: Удалить (безвозвратно) картинки по merch_uuid
parameters:
- description: merch_uuid
in: path
@ -291,7 +298,7 @@ paths:
$ref: '#/definitions/responses.ErrorResponse500'
security:
- BearerAuth: []
summary: Удалить (безвозвратно) картинки по merch_uuid и query параметрам
summary: Удалить (безвозвратно) картинки по merch_uuid
tags:
- Merch images
get:
@ -328,7 +335,8 @@ paths:
post:
consumes:
- multipart/form-data
description: Загрузить картинки по merch_uuid и query параметрам
description: Загрузить картинку по merch_uuid. В ответ будут выданы ссылки на
созданные картинки.
parameters:
- description: Merch UUID
in: path
@ -340,20 +348,13 @@ paths:
name: file
required: true
type: file
- description: 'Image type: thumbnail, full or all'
enum:
- thumbnail
- full
- all
in: formData
name: imageType
required: true
type: string
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/imageStorage.UploadMerchImageResponse'
"400":
description: Bad Request
schema:
@ -364,7 +365,7 @@ paths:
$ref: '#/definitions/responses.ErrorResponse500'
security:
- BearerAuth: []
summary: Загрузить картинки по merch_uuid и query параметрам
summary: Загрузить картинку по merch_uuid
tags:
- Merch images
/prices: