refact: openapi splitted into separate files
This commit is contained in:
parent
9ed09500ed
commit
2025bb451f
22 changed files with 443 additions and 435 deletions
63
api/schemas/Title.yaml
Normal file
63
api/schemas/Title.yaml
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
type: object
|
||||
required:
|
||||
- id
|
||||
- title_names
|
||||
- tags
|
||||
properties:
|
||||
id:
|
||||
type: integer
|
||||
format: int64
|
||||
description: Unique title ID (primary key)
|
||||
example: 1
|
||||
title_names:
|
||||
type: object
|
||||
description: Localized titles. Key = language (ISO 639-1), value = list of names
|
||||
additionalProperties:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
example: Attack on Titan
|
||||
minItems: 1
|
||||
example:
|
||||
- Attack on Titan
|
||||
- AoT
|
||||
example:
|
||||
en:
|
||||
- Attack on Titan
|
||||
- AoT
|
||||
ru:
|
||||
- Атака титанов
|
||||
- Титаны
|
||||
ja:
|
||||
- 進撃の巨人
|
||||
studio:
|
||||
$ref: ./Studio.yaml
|
||||
tags:
|
||||
$ref: ./Tags.yaml
|
||||
poster:
|
||||
$ref: ./Image.yaml
|
||||
title_status:
|
||||
$ref: ./enums/TitleStatus.yaml
|
||||
rating:
|
||||
type: number
|
||||
format: double
|
||||
rating_count:
|
||||
type: integer
|
||||
format: int32
|
||||
release_year:
|
||||
type: integer
|
||||
format: int32
|
||||
release_season:
|
||||
$ref: ./enums/ReleaseSeason.yaml
|
||||
episodes_aired:
|
||||
type: integer
|
||||
format: int32
|
||||
episodes_all:
|
||||
type: integer
|
||||
format: int32
|
||||
episodes_len:
|
||||
type: object
|
||||
additionalProperties:
|
||||
type: number
|
||||
format: double
|
||||
additionalProperties: true
|
||||
Loading…
Add table
Add a link
Reference in a new issue