From 4b7025cae6f56e1cf608dbdc1b930f0b7fa781d0 Mon Sep 17 00:00:00 2001 From: Uthman Fatih Date: Mon, 2 Nov 2026 02:25:26 +0000 Subject: [PATCH] feat: add manga API requests and update anime requests --- insomnia/anime.yaml | 75 +++++++++++++++++++++++++++++++++++++++++++-- insomnia/manga.yaml | 61 ++++++++++++++++++++++++++++++++++++ manga.yaml | 21 ------------- 3 files changed, 133 insertions(+), 24 deletions(-) create mode 100644 insomnia/manga.yaml delete mode 100644 manga.yaml diff --git a/insomnia/anime.yaml b/insomnia/anime.yaml index 5cce989..dc4b8bf 100644 --- a/insomnia/anime.yaml +++ b/insomnia/anime.yaml @@ -4,14 +4,83 @@ name: Anime meta: id: wrk_07ddc8ce763646ac9c8f173d07f9794e created: 1793583628970 - modified: 1793583628970 - description: "" + modified: 1793584641307 + description: All anime related api requests (i.e. fetching lists, airing + schedules, and so on) +collection: + - url: https://graphql.anilist.co + name: MediaListCollection + meta: + id: req_3897f0456ff843f4a8f67fce2bf0f980 + created: 1793583986929 + modified: 1793586040103 + isPrivate: false + description: Get all the anime lists of a specified user id + sortKey: -1793583986929 + method: POST + body: + mimeType: application/graphql + text: '{"query":"query ($userId: Int!) {\n MediaListCollection(type: ANIME, + userId: $userId) {\n lists {\n name\n entries + {\n id\n media {\n id\n title + {\n romaji\n\t\t\t\t\t\tenglish\n }\n }\n }\n }\n }\n}","variables":"{\n \"type\": + \"ANIME\",\n \"userId\": 8283179\n}"}' + headers: + - name: Content-Type + value: application/json + settings: + renderRequestBody: true + encodeUrl: true + followRedirects: global + cookies: + send: true + store: true + rebuildPath: true + - url: https://graphql.anilist.co + name: AiringSchedule + meta: + id: req_1196ec001e1a482e9c3a2e7b876e04a7 + created: 1793585402931 + modified: 1793586291083 + isPrivate: false + description: Fetches media title in romaji and english, alongside its airing + schedule for unreleased episodes + sortKey: -1793585402931 + method: POST + body: + mimeType: application/graphql + text: '{"query":"query ($mediaId: Int!) {\n AiringSchedule(mediaId: $mediaId) + {\n media {\n title + {\n romaji\n english\n }\n format\n status\n airingSchedule(notYetAired: + true) {\n nodes + {\n episode\n airingAt\n timeUntilAiring\n }\n }\n }\n }\n}","variables":"{\n\t\"mediaId\": + 195516\n}"}' + headers: + - name: Content-Type + value: application/json + settings: + renderRequestBody: true + encodeUrl: true + followRedirects: global + cookies: + send: true + store: true + rebuildPath: true cookieJar: name: Default Jar meta: id: jar_24b6e6da5159f879e56d5ae67427295cc9b7e66f created: 1793583628974 - modified: 1793583628974 + modified: 1793586296454 + cookies: + - id: 6fadc9b7-9fb4-4e01-9629-ad91f697912a + key: laravel_session + value: 4qB5zEfQDuD9NANy84DnyWoggXI9lH8vIXGdcTsr + domain: graphql.anilist.co + path: / + secure: false + httpOnly: true + hostOnly: true environments: name: Base Environment meta: diff --git a/insomnia/manga.yaml b/insomnia/manga.yaml new file mode 100644 index 0000000..84a12fb --- /dev/null +++ b/insomnia/manga.yaml @@ -0,0 +1,61 @@ +type: collection.insomnia.rest/5.0 +schema_version: "5.1" +name: Manga +meta: + id: wrk_e58a92a4b0c34f7c9e931dc69854903c + created: 1793583639526 + modified: 1793584999023 + description: All manga related api requests (i.e. fetching lists). Airing + schedules will not use an Api due to a lack of support and will either use + scrapers or predictions. +collection: + - url: https://graphql.anilist.co + name: MediaListCollection + meta: + id: req_b032ce699fe9435385a211b662c3c6bd + created: 1793584343366 + modified: 1793586280897 + isPrivate: false + description: Get all the manga lists of a specified user id + sortKey: -1793584330452 + method: POST + body: + mimeType: application/graphql + text: '{"query":"query ($userId: Int!) {\n MediaListCollection(type: MANGA, + userId: $userId) {\n lists {\n name\n entries + {\n id\n media {\n id\n title + {\n romaji\n\t\t\t\t\t\tenglish\n }\n }\n }\n }\n }\n}","variables":"{\n\t\"userId\": + 8283179\n}"}' + headers: + - name: Content-Type + value: application/json + settings: + renderRequestBody: true + encodeUrl: true + followRedirects: global + cookies: + send: true + store: true + rebuildPath: true +cookieJar: + name: Default Jar + meta: + id: jar_d380b7bf58ecae2b8764f73c9cdc5095239cfb3c + created: 1793583639540 + modified: 1793586297400 + cookies: + - id: a8f03825-11c7-4999-a838-9be8749e9cf8 + key: laravel_session + value: NKmPUrduYOT6ItwsiPWFxkjtxgydL7shbUQkZhsR + domain: graphql.anilist.co + path: / + secure: false + httpOnly: true + hostOnly: true +environments: + name: Base Environment + meta: + id: env_d380b7bf58ecae2b8764f73c9cdc5095239cfb3c + created: 1793583639540 + modified: 1793583639540 + isPrivate: false diff --git a/manga.yaml b/manga.yaml deleted file mode 100644 index f8922c9..0000000 --- a/manga.yaml +++ /dev/null @@ -1,21 +0,0 @@ -type: collection.insomnia.rest/5.0 -schema_version: "5.1" -name: Manga -meta: - id: wrk_e58a92a4b0c34f7c9e931dc69854903c - created: 1793583639526 - modified: 1793583639526 - description: "" -cookieJar: - name: Default Jar - meta: - id: jar_d380b7bf58ecae2b8764f73c9cdc5095239cfb3c - created: 1793583639540 - modified: 1793583639540 -environments: - name: Base Environment - meta: - id: env_d380b7bf58ecae2b8764f73c9cdc5095239cfb3c - created: 1793583639540 - modified: 1793583639540 - isPrivate: false