Update api-docs.json

This commit is contained in:
Irfan 2021-04-20 10:11:24 +05:00
parent f6eb41c6e0
commit 9b5fa15b54

View File

@ -514,6 +514,78 @@
} }
} }
}, },
"/anime/{id}/relations": {
"get": {
"tags": [
"anime"
],
"operationId": "getAnimeRelations",
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "integer"
}
},
{
"$ref": "#/components/parameters/page"
}
],
"responses": {
"200": {
"description": "Returns anime relations",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/anime reviews"
}
}
}
},
"400": {
"description": "Error: Bad request. When required parameters were not supplied."
}
}
}
},
"/anime/{id}/themes": {
"get": {
"tags": [
"anime"
],
"operationId": "getAnimeThemes",
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "integer"
}
},
{
"$ref": "#/components/parameters/page"
}
],
"responses": {
"200": {
"description": "Returns anime themes",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/anime reviews"
}
}
}
},
"400": {
"description": "Error: Bad request. When required parameters were not supplied."
}
}
}
},
"/characters/{id}": { "/characters/{id}": {
"get": { "get": {
"tags": [ "tags": [
@ -547,6 +619,69 @@
} }
} }
}, },
"/characters/{id}/anime": {
"get": {
"tags": [
"characters"
],
"operationId": "getCharacterAnime",
"responses": {
"200": {
"description": "Returns characters's anime",
"content": {
"application/json": {
"schema": {}
}
}
},
"400": {
"description": "Error: Bad request. When required parameters were not supplied."
}
}
}
},
"/characters/{id}/manga": {
"get": {
"tags": [
"characters"
],
"operationId": "getCharacterManga",
"responses": {
"200": {
"description": "Returns characters's manga",
"content": {
"application/json": {
"schema": {}
}
}
},
"400": {
"description": "Error: Bad request. When required parameters were not supplied."
}
}
}
},
"/characters/{id}/seiyuu": {
"get": {
"tags": [
"characters"
],
"operationId": "getCharacterSeiyuu",
"responses": {
"200": {
"description": "Returns characters's Seiyuu (voice actors)",
"content": {
"application/json": {
"schema": {}
}
}
},
"400": {
"description": "Error: Bad request. When required parameters were not supplied."
}
}
}
},
"/characters/{id}/pictures": { "/characters/{id}/pictures": {
"get": { "get": {
"tags": [ "tags": [
@ -656,88 +791,6 @@
} }
} }
}, },
"/genres/anime/{id}": {
"get": {
"tags": [
"genres"
],
"operationId": "getAnimeGenreById",
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "integer"
}
}
],
"responses": {
"200": {
"description": "Returns Genres's anime",
"content": {
"application/json": {
"schema": {
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/anime"
}
}
},
"type": "object"
}
}
}
},
"400": {
"description": "Error: Bad request. When required parameters were not supplied."
}
}
}
},
"/genres/manga/{id}": {
"get": {
"tags": [
"genres"
],
"operationId": "getMangaGenreById",
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "integer"
}
}
],
"responses": {
"200": {
"description": "Returns Genres's manga",
"content": {
"application/json": {
"schema": {
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/manga"
}
}
},
"type": "object"
}
}
}
},
"400": {
"description": "Error: Bad request. When required parameters were not supplied."
}
}
}
},
"/genres/anime": { "/genres/anime": {
"get": { "get": {
"tags": [ "tags": [
@ -1069,6 +1122,42 @@
} }
} }
}, },
"/manga/{id}/relations": {
"get": {
"tags": [
"manga"
],
"operationId": "getMangaRelations",
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "integer"
}
},
{
"$ref": "#/components/parameters/page"
}
],
"responses": {
"200": {
"description": "Returns manga relations",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/manga reviews"
}
}
}
},
"400": {
"description": "Error: Bad request. When required parameters were not supplied."
}
}
}
},
"/people/{id}": { "/people/{id}": {
"get": { "get": {
"tags": [ "tags": [
@ -1300,6 +1389,27 @@
} }
} }
}, },
"/random/users": {
"get": {
"tags": [
"random"
],
"operationId": "getRandomUsers",
"responses": {
"200": {
"description": "Returns Random Users",
"content": {
"application/json": {
"schema": {}
}
}
},
"400": {
"description": "Error: Bad request. When required parameters were not supplied."
}
}
}
},
"/recommendations/anime": { "/recommendations/anime": {
"get": { "get": {
"tags": [ "tags": [
@ -1372,7 +1482,6 @@
{ {
"properties": { "properties": {
"anime": { "anime": {
"type": "object",
"$ref": "#/components/schemas/anime meta" "$ref": "#/components/schemas/anime meta"
} }
}, },
@ -1381,7 +1490,6 @@
{ {
"properties": { "properties": {
"user": { "user": {
"type": "object",
"$ref": "#/components/schemas/user meta" "$ref": "#/components/schemas/user meta"
} }
}, },
@ -1437,7 +1545,6 @@
{ {
"properties": { "properties": {
"manga": { "manga": {
"type": "object",
"$ref": "#/components/schemas/manga meta" "$ref": "#/components/schemas/manga meta"
} }
}, },
@ -1446,7 +1553,6 @@
{ {
"properties": { "properties": {
"user": { "user": {
"type": "object",
"$ref": "#/components/schemas/user meta" "$ref": "#/components/schemas/user meta"
} }
}, },
@ -2155,7 +2261,6 @@
{ {
"properties": { "properties": {
"anime": { "anime": {
"type": "object",
"$ref": "#/components/schemas/anime meta" "$ref": "#/components/schemas/anime meta"
} }
}, },
@ -2164,7 +2269,6 @@
{ {
"properties": { "properties": {
"user": { "user": {
"type": "object",
"$ref": "#/components/schemas/user meta" "$ref": "#/components/schemas/user meta"
} }
}, },
@ -2180,7 +2284,6 @@
{ {
"properties": { "properties": {
"manga": { "manga": {
"type": "object",
"$ref": "#/components/schemas/manga meta" "$ref": "#/components/schemas/manga meta"
} }
}, },
@ -2189,7 +2292,6 @@
{ {
"properties": { "properties": {
"user": { "user": {
"type": "object",
"$ref": "#/components/schemas/user meta" "$ref": "#/components/schemas/user meta"
} }
}, },
@ -2238,6 +2340,90 @@
} }
} }
}, },
"/users/{username}/statistics": {
"get": {
"tags": [
"users"
],
"operationId": "getUserStatistics",
"responses": {
"200": {
"description": "Returns user statistics",
"content": {
"application/json": {
"schema": {}
}
}
},
"400": {
"description": "Error: Bad request. When required parameters were not supplied."
}
}
}
},
"/users/{username}/favorites": {
"get": {
"tags": [
"users"
],
"operationId": "getUserFavorites",
"responses": {
"200": {
"description": "Returns user favorites",
"content": {
"application/json": {
"schema": {}
}
}
},
"400": {
"description": "Error: Bad request. When required parameters were not supplied."
}
}
}
},
"/users/{username}/userupdates": {
"get": {
"tags": [
"users"
],
"operationId": "getUserUpdates",
"responses": {
"200": {
"description": "Returns user updates",
"content": {
"application/json": {
"schema": {}
}
}
},
"400": {
"description": "Error: Bad request. When required parameters were not supplied."
}
}
}
},
"/users/{username}/about": {
"get": {
"tags": [
"users"
],
"operationId": "getUserAbout",
"responses": {
"200": {
"description": "Returns user about (HTML)",
"content": {
"application/json": {
"schema": {}
}
}
},
"400": {
"description": "Error: Bad request. When required parameters were not supplied."
}
}
}
},
"/users/{username}/history/{type}": { "/users/{username}/history/{type}": {
"get": { "get": {
"tags": [ "tags": [
@ -2312,7 +2498,6 @@
{ {
"properties": { "properties": {
"anime": { "anime": {
"type": "object",
"$ref": "#/components/schemas/anime meta" "$ref": "#/components/schemas/anime meta"
} }
}, },
@ -2321,7 +2506,6 @@
{ {
"properties": { "properties": {
"user": { "user": {
"type": "object",
"$ref": "#/components/schemas/user meta" "$ref": "#/components/schemas/user meta"
} }
}, },
@ -2337,7 +2521,6 @@
{ {
"properties": { "properties": {
"manga": { "manga": {
"type": "object",
"$ref": "#/components/schemas/manga meta" "$ref": "#/components/schemas/manga meta"
} }
}, },
@ -2346,7 +2529,6 @@
{ {
"properties": { "properties": {
"user": { "user": {
"type": "object",
"$ref": "#/components/schemas/user meta" "$ref": "#/components/schemas/user meta"
} }
}, },
@ -2738,7 +2920,6 @@
"description": "Similar Anime", "description": "Similar Anime",
"type": "array", "type": "array",
"items": { "items": {
"type": "object",
"$ref": "#/components/schemas/mal_url" "$ref": "#/components/schemas/mal_url"
} }
} }
@ -2752,7 +2933,6 @@
"description": "Similar Manga", "description": "Similar Manga",
"type": "array", "type": "array",
"items": { "items": {
"type": "object",
"$ref": "#/components/schemas/mal_url" "$ref": "#/components/schemas/mal_url"
} }
} }
@ -2767,63 +2947,54 @@
"monday": { "monday": {
"type": "array", "type": "array",
"items": { "items": {
"type": "object",
"$ref": "#/components/schemas/anime" "$ref": "#/components/schemas/anime"
} }
}, },
"tuesday": { "tuesday": {
"type": "array", "type": "array",
"items": { "items": {
"type": "object",
"$ref": "#/components/schemas/anime" "$ref": "#/components/schemas/anime"
} }
}, },
"wednesday": { "wednesday": {
"type": "array", "type": "array",
"items": { "items": {
"type": "object",
"$ref": "#/components/schemas/anime" "$ref": "#/components/schemas/anime"
} }
}, },
"thursday": { "thursday": {
"type": "array", "type": "array",
"items": { "items": {
"type": "object",
"$ref": "#/components/schemas/anime" "$ref": "#/components/schemas/anime"
} }
}, },
"friday": { "friday": {
"type": "array", "type": "array",
"items": { "items": {
"type": "object",
"$ref": "#/components/schemas/anime" "$ref": "#/components/schemas/anime"
} }
}, },
"saturday": { "saturday": {
"type": "array", "type": "array",
"items": { "items": {
"type": "object",
"$ref": "#/components/schemas/anime" "$ref": "#/components/schemas/anime"
} }
}, },
"sunday": { "sunday": {
"type": "array", "type": "array",
"items": { "items": {
"type": "object",
"$ref": "#/components/schemas/anime" "$ref": "#/components/schemas/anime"
} }
}, },
"other": { "other": {
"type": "array", "type": "array",
"items": { "items": {
"type": "object",
"$ref": "#/components/schemas/anime" "$ref": "#/components/schemas/anime"
} }
}, },
"unknown": { "unknown": {
"type": "array", "type": "array",
"items": { "items": {
"type": "object",
"$ref": "#/components/schemas/anime" "$ref": "#/components/schemas/anime"
} }
} }
@ -3171,7 +3342,6 @@
"trailer": { "trailer": {
"type": "array", "type": "array",
"items": { "items": {
"type": "object",
"$ref": "#/components/schemas/trailer" "$ref": "#/components/schemas/trailer"
} }
} }
@ -3653,28 +3823,24 @@
"producers": { "producers": {
"type": "array", "type": "array",
"items": { "items": {
"type": "object",
"$ref": "#/components/schemas/mal_url" "$ref": "#/components/schemas/mal_url"
} }
}, },
"licensors": { "licensors": {
"type": "array", "type": "array",
"items": { "items": {
"type": "object",
"$ref": "#/components/schemas/mal_url" "$ref": "#/components/schemas/mal_url"
} }
}, },
"studios": { "studios": {
"type": "array", "type": "array",
"items": { "items": {
"type": "object",
"$ref": "#/components/schemas/mal_url" "$ref": "#/components/schemas/mal_url"
} }
}, },
"genres": { "genres": {
"type": "array", "type": "array",
"items": { "items": {
"type": "object",
"$ref": "#/components/schemas/mal_url" "$ref": "#/components/schemas/mal_url"
} }
}, },
@ -4129,8 +4295,6 @@
"description": "Anime Relations", "description": "Anime Relations",
"type": "array", "type": "array",
"items": { "items": {
"description": "Resource",
"type": "object",
"$ref": "#/components/schemas/mal_url" "$ref": "#/components/schemas/mal_url"
} }
}, },
@ -4138,8 +4302,6 @@
"description": "Manga Relations", "description": "Manga Relations",
"type": "array", "type": "array",
"items": { "items": {
"description": "Resource",
"type": "object",
"$ref": "#/components/schemas/mal_url" "$ref": "#/components/schemas/mal_url"
} }
}, },
@ -4147,8 +4309,6 @@
"description": "Character Relations", "description": "Character Relations",
"type": "array", "type": "array",
"items": { "items": {
"description": "Resource",
"type": "object",
"$ref": "#/components/schemas/mal_url" "$ref": "#/components/schemas/mal_url"
} }
} }
@ -4358,7 +4518,6 @@
"description": "Related items", "description": "Related items",
"type": "array", "type": "array",
"items": { "items": {
"type": "object",
"$ref": "#/components/schemas/mal_url" "$ref": "#/components/schemas/mal_url"
} }
} }
@ -4441,7 +4600,6 @@
"type": "string" "type": "string"
}, },
"images": { "images": {
"type": "object",
"$ref": "#/components/schemas/user images" "$ref": "#/components/schemas/user images"
} }
}, },
@ -4483,7 +4641,6 @@
"type": "string" "type": "string"
}, },
"images": { "images": {
"type": "object",
"$ref": "#/components/schemas/anime images" "$ref": "#/components/schemas/anime images"
} }
}, },
@ -4500,7 +4657,6 @@
"type": "string" "type": "string"
}, },
"images": { "images": {
"type": "object",
"$ref": "#/components/schemas/manga images" "$ref": "#/components/schemas/manga images"
} }
}, },
@ -5056,21 +5212,18 @@
"authors": { "authors": {
"type": "array", "type": "array",
"items": { "items": {
"type": "object",
"$ref": "#/components/schemas/mal_url" "$ref": "#/components/schemas/mal_url"
} }
}, },
"serializations": { "serializations": {
"type": "array", "type": "array",
"items": { "items": {
"type": "object",
"$ref": "#/components/schemas/mal_url" "$ref": "#/components/schemas/mal_url"
} }
}, },
"genres": { "genres": {
"type": "array", "type": "array",
"items": { "items": {
"type": "object",
"$ref": "#/components/schemas/mal_url" "$ref": "#/components/schemas/mal_url"
} }
} }
@ -5409,8 +5562,6 @@
"type": "string" "type": "string"
}, },
"anime": { "anime": {
"description": "Anime Meta",
"type": "object",
"$ref": "#/components/schemas/mal_url" "$ref": "#/components/schemas/mal_url"
}, },
"increment": { "increment": {
@ -5435,8 +5586,6 @@
"type": "string" "type": "string"
}, },
"manga": { "manga": {
"description": "Manga Meta",
"type": "object",
"$ref": "#/components/schemas/mal_url" "$ref": "#/components/schemas/mal_url"
}, },
"increment": { "increment": {
@ -5618,7 +5767,6 @@
"description": "Favorite Anime", "description": "Favorite Anime",
"type": "array", "type": "array",
"items": { "items": {
"type": "object",
"$ref": "#/components/schemas/entry_meta" "$ref": "#/components/schemas/entry_meta"
} }
}, },
@ -5626,7 +5774,6 @@
"description": "Favorite Manga", "description": "Favorite Manga",
"type": "array", "type": "array",
"items": { "items": {
"type": "object",
"$ref": "#/components/schemas/entry_meta" "$ref": "#/components/schemas/entry_meta"
} }
}, },
@ -5634,7 +5781,6 @@
"description": "Favorite Characters", "description": "Favorite Characters",
"type": "array", "type": "array",
"items": { "items": {
"type": "object",
"$ref": "#/components/schemas/entry_meta" "$ref": "#/components/schemas/entry_meta"
} }
}, },
@ -5642,7 +5788,6 @@
"description": "Favorite People", "description": "Favorite People",
"type": "array", "type": "array",
"items": { "items": {
"type": "object",
"$ref": "#/components/schemas/entry_meta" "$ref": "#/components/schemas/entry_meta"
} }
} }
@ -5705,7 +5850,6 @@
"data": { "data": {
"type": "array", "type": "array",
"items": { "items": {
"type": "object",
"$ref": "#/components/schemas/anime review" "$ref": "#/components/schemas/anime review"
} }
} }
@ -5718,7 +5862,6 @@
"data": { "data": {
"type": "array", "type": "array",
"items": { "items": {
"type": "object",
"$ref": "#/components/schemas/manga review" "$ref": "#/components/schemas/manga review"
} }
} }