swagger docs update

This commit is contained in:
nquidox 2026-03-04 17:02:21 +03:00
parent 97f8d27430
commit 25d11b31da
3 changed files with 188 additions and 0 deletions

View file

@ -5,6 +5,15 @@ definitions:
name:
type: string
type: object
merch.newMerchDTO:
properties:
links:
items:
$ref: '#/definitions/merch.originLink'
type: array
name:
type: string
type: object
merch.newOriginDTO:
properties:
name:
@ -17,6 +26,13 @@ definitions:
name:
type: string
type: object
merch.originLink:
properties:
origin_link:
type: string
origin_name:
type: string
type: object
merch.originsDTO:
properties:
origins:
@ -48,6 +64,36 @@ info:
title: Merch API
version: "2.3"
paths:
/merch/create:
post:
consumes:
- application/json
description: Create new merch
parameters:
- description: merch body
in: body
name: merch
required: true
schema:
$ref: '#/definitions/merch.newMerchDTO'
responses:
"201":
description: Created
"400":
description: Bad Request
schema:
$ref: '#/definitions/responses.BadRequest'
"401":
description: Unauthorized
schema:
$ref: '#/definitions/responses.Unauthorized'
"500":
description: Internal Server Error
schema:
$ref: '#/definitions/responses.InternalServerError'
summary: Create new merch
tags:
- Merch
/merch/origins:
delete:
consumes: