feat: /titles/{id} endpoint implemented

This commit is contained in:
Iron_Felix 2025-11-16 03:38:51 +03:00
parent cefbbec1dc
commit 47989ab10d
5 changed files with 283 additions and 114 deletions

View file

@ -66,29 +66,34 @@ paths:
'500':
description: Unknown server error
# /title/{title_id}:
# get:
# summary: Get title description
# parameters:
# - in: path
# name: title_id
# required: true
# schema:
# type: string
# - in: query
# name: fields
# schema:
# type: string
# default: all
# responses:
# '200':
# description: Title description
# content:
# application/json:
# schema:
# $ref: '#/components/schemas/Title'
# '404':
# description: Title not found
/title/{title_id}:
get:
summary: Get title description
parameters:
- in: path
name: title_id
required: true
schema:
type: integer
format: int64
- in: query
name: fields
schema:
type: string
default: all
responses:
'200':
description: Title description
content:
application/json:
schema:
$ref: '#/components/schemas/Title'
'404':
description: Title not found
'400':
description: Request params are not correct
'500':
description: Unknown server error
# patch:
# summary: Update title info