366 lines
12 KiB
JSON
366 lines
12 KiB
JSON
{
|
|
"openapi": "3.1.0",
|
|
"info": {
|
|
"title": "OpenAPI definition",
|
|
"version": "v0"
|
|
},
|
|
"servers": [
|
|
{
|
|
"url": "http://localhost:8080",
|
|
"description": "Generated server url"
|
|
}
|
|
],
|
|
"paths": {
|
|
"/search": {
|
|
"get": {
|
|
"tags": [
|
|
"search-controller"
|
|
],
|
|
"operationId": "search",
|
|
"parameters": [
|
|
{
|
|
"name": "title",
|
|
"in": "query",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"*/*": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/KodikResponse"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"components": {
|
|
"schemas": {
|
|
"KodikResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"total": {
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"results": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/Result"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"MaterialData": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"year": {
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"screenshots": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"duration": {
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"countries": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"genres": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"actors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"directors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"producers": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"writers": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"composers": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"editors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"designers": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"operators": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"anime_title": {
|
|
"type": "string"
|
|
},
|
|
"title_en": {
|
|
"type": "string"
|
|
},
|
|
"other_titles": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"other_titles_en": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"other_titles_jp": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"anime_license_name": {
|
|
"type": "string"
|
|
},
|
|
"anime_licensed_by": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"anime_kind": {
|
|
"type": "string"
|
|
},
|
|
"all_status": {
|
|
"type": "string"
|
|
},
|
|
"anime_status": {
|
|
"type": "string"
|
|
},
|
|
"anime_description": {
|
|
"type": "string"
|
|
},
|
|
"poster_url": {
|
|
"type": "string"
|
|
},
|
|
"anime_poster_url": {
|
|
"type": "string"
|
|
},
|
|
"all_genres": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"anime_genres": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"anime_studios": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"kinopoisk_rating": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"kinopoisk_votes": {
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"imdb_rating": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"imdb_votes": {
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"shikimori_rating": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"shikimori_votes": {
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"premiere_world": {
|
|
"type": "string"
|
|
},
|
|
"aired_at": {
|
|
"type": "string"
|
|
},
|
|
"released_at": {
|
|
"type": "string"
|
|
},
|
|
"rating_mpaa": {
|
|
"type": "string"
|
|
},
|
|
"minimal_age": {
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"episodes_total": {
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"episodes_aired": {
|
|
"type": "integer",
|
|
"format": "int32"
|
|
}
|
|
}
|
|
},
|
|
"Result": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"link": {
|
|
"type": "string"
|
|
},
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"translation": {
|
|
"$ref": "#/components/schemas/Translation"
|
|
},
|
|
"year": {
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"quality": {
|
|
"type": "string"
|
|
},
|
|
"camrip": {
|
|
"type": "boolean"
|
|
},
|
|
"lgbt": {
|
|
"type": "boolean"
|
|
},
|
|
"screenshots": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"title_orig": {
|
|
"type": "string"
|
|
},
|
|
"other_title": {
|
|
"type": "string"
|
|
},
|
|
"last_season": {
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"last_episode": {
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"episodes_count": {
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"kinopoisk_id": {
|
|
"type": "string"
|
|
},
|
|
"imdb_id": {
|
|
"type": "string"
|
|
},
|
|
"worldart_link": {
|
|
"type": "string"
|
|
},
|
|
"shikimori_id": {
|
|
"type": "string"
|
|
},
|
|
"blocked_countries": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"created_at": {
|
|
"type": "string"
|
|
},
|
|
"updated_at": {
|
|
"type": "string"
|
|
},
|
|
"material_data": {
|
|
"$ref": "#/components/schemas/MaterialData"
|
|
}
|
|
}
|
|
},
|
|
"Translation": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|