From ab1e496c0ff7424de42840d5b7f36acd78790397 Mon Sep 17 00:00:00 2001 From: Irfan Date: Sun, 23 Apr 2023 09:02:41 +0500 Subject: [PATCH] fix docs --- app/Http/Controllers/V4DB/AnimeController.php | 2 +- storage/api-docs/api-docs.json | 42 ++++++++++++++++++- 2 files changed, 41 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/V4DB/AnimeController.php b/app/Http/Controllers/V4DB/AnimeController.php index 5de1d86..c8a224d 100644 --- a/app/Http/Controllers/V4DB/AnimeController.php +++ b/app/Http/Controllers/V4DB/AnimeController.php @@ -204,7 +204,7 @@ class AnimeController extends Controller * @OA\Property( * property="url", * type="string", - * description="MyAnimeList URL. This is the URL of the episode's video. If there is no video url, this will be null." + * description="MyAnimeList URL. This is the URL of the episode's video. If there is no video url, this will be null.", * nullable=true * ), * @OA\Property( diff --git a/storage/api-docs/api-docs.json b/storage/api-docs/api-docs.json index 892a139..8fee73c 100644 --- a/storage/api-docs/api-docs.json +++ b/storage/api-docs/api-docs.json @@ -3763,6 +3763,13 @@ "schema": { "type": "string" } + }, + { + "name": "status", + "in": "query", + "schema": { + "$ref": "#/components/schemas/user_anime_list_status_filter" + } } ], "responses": { @@ -3796,6 +3803,13 @@ "schema": { "type": "string" } + }, + { + "name": "status", + "in": "query", + "schema": { + "$ref": "#/components/schemas/user_manga_list_status_filter" + } } ], "responses": { @@ -4122,6 +4136,18 @@ }, "components": { "schemas": { + "user_anime_list_status_filter": { + "description": "User's anime list status filter options", + "type": "string", + "enum": [ + "all", + "watching", + "completed", + "onhold", + "dropped", + "plantowatch" + ] + }, "anime_search_query_orderby": { "description": "Available Anime order_by properties", "type": "string", @@ -4249,6 +4275,18 @@ "count" ] }, + "user_manga_list_status_filter": { + "description": "User's anime list status filter options", + "type": "string", + "enum": [ + "all", + "reading", + "completed", + "onhold", + "dropped", + "plantoread" + ] + }, "manga_search_query_orderby": { "description": "Available Manga order_by properties", "type": "string", @@ -4361,8 +4399,8 @@ "type": "integer" }, "url": { - "description": "MyAnimeList URL", - "type": "string" + "type": "string", + "nullable": true }, "title": { "description": "Title",