wrote bru requests for posting data

This commit is contained in:
John O'Keefe 2024-07-25 09:10:55 -04:00
parent 4e11b218be
commit 2dd0114cc3
8 changed files with 489 additions and 0 deletions

View File

@ -0,0 +1,105 @@
meta {
name: AniList Item
type: graphql
seq: 1
}
post {
url: https://graphql.anilist.co
body: graphql
auth: none
}
headers {
Content-Type: "application/json"
Accept: "application/json"
}
body:graphql {
query($userId: Int, $mediaId: Int, $listType: MediaType) {
MediaList(mediaId: $mediaId, userId: $userId, type: $listType) {
id
mediaId
userId
media {
id
idMal
title {
romaji
english
native
}
description
coverImage {
large
}
season
seasonYear
status
episodes
nextAiringEpisode {
airingAt
timeUntilAiring
episode
}
}
status
startedAt{
year
month
day
}
completedAt{
year
month
day
}
notes
progress
score
repeat
user {
id
name
avatar {
large
medium
}
statistics {
anime {
count
statuses {
status
count
}
}
}
}
}
}
}
body:graphql:vars {
{
"userId": 413504,
"mediaId": 157371,
"listType": "ANIME"
}
}
docs {
Title
Image
Description
Episodes
Status
Season
External & Streaming Links
}

View File

@ -0,0 +1,103 @@
meta {
name: AniList MediaList User Query
type: graphql
seq: 4
}
post {
url: https://graphql.anilist.co
body: graphql
auth: none
}
headers {
Content-Type: "application/json"
Accept: "application/json"
}
body:graphql {
# Write your query or mutation here
query(
$page: Int
$perPage: Int
$userId: Int
$listType: MediaType
$status: MediaListStatus
) {
Page(page: $page, perPage: $perPage) {
pageInfo {
total
perPage
currentPage
lastPage
hasNextPage
}
mediaList(userId: $userId, type: $listType, status: $status) {
id
mediaId
userId
media {
id
idMal
title {
romaji
english
native
}
description
coverImage {
large
}
season
seasonYear
episodes
}
status
notes
progress
score
repeat
user {
id
statistics {
anime {
count
statuses {
status
count
}
}
}
}
}
}
}
}
body:graphql:vars {
{
"page": 1,
"perPage": 20,
"userId": 413504,
"listType": "ANIME",
"status": "CURRENT"
}
}
docs {
Title
Image
Description
Episodes
Status
Season
External & Streaming Links
User Stuff Per Item
Status
Score
Episode Progress
Total Rewatches
Notes
}

View File

@ -0,0 +1,75 @@
meta {
name: AniList Search
type: graphql
seq: 2
}
post {
url: https://graphql.anilist.co
body: graphql
auth: none
}
headers {
Content-Type: "application/json"
Accept: "application/json"
}
body:graphql {
query ($search: String!, $listType: MediaType) {
Page (page: 1, perPage: 100) {
pageInfo {
total
currentPage
lastPage
hasNextPage
perPage
}
media (search: $search, type: $listType) {
id
idMal
title {
romaji
english
native
}
description
coverImage {
large
}
season
seasonYear
status
episodes
nextAiringEpisode{
airingAt
timeUntilAiring
episode
}
}
}
}
}
body:graphql:vars {
{
"search": "frieren",
"listType": "ANIME"
}
}
docs {
Title
Image
Description
Episodes
Status
Season
External & Streaming Links
}

View File

@ -0,0 +1,125 @@
meta {
name: GetAniListUserWatchingList
type: graphql
seq: 3
}
post {
url: https://graphql.anilist.co
body: graphql
auth: none
}
headers {
Content-Type: "application/json"
Accept: "application/json"
}
body:graphql {
# Write your query or mutation here
query (
$page: Int
$perPage: Int
$userId: Int
$listType: MediaType
$status: MediaListStatus
$sort: [MediaListSort]
) {
Page(page: $page, perPage: $perPage) {
pageInfo {
total
perPage
currentPage
lastPage
hasNextPage
}
mediaList(userId: $userId, type: $listType, status: $status, sort: $sort) {
id
mediaId
userId
media {
id
idMal
title {
romaji
english
native
}
description
coverImage {
large
}
season
seasonYear
status
episodes
nextAiringEpisode {
airingAt
timeUntilAiring
episode
}
}
status
startedAt {
year
month
day
}
completedAt {
year
month
day
}
notes
progress
score
repeat
user {
id
name
avatar {
large
medium
}
statistics {
anime {
count
statuses {
status
count
}
}
}
}
}
}
}
}
body:graphql:vars {
{
"page": 1,
"perPage": 20,
"userId": 413504,
"listType": "ANIME",
"status": "CURRENT",
"sort": "UPDATED_TIME_DESC"
}
}
docs {
Title
Image
Description
Episodes
Status
Season
External & Streaming Links
}

View File

@ -0,0 +1,48 @@
meta {
name: AniList Change Episode Watched
type: graphql
seq: 1
}
post {
url: https://graphql.anilist.co
body: graphql
auth: none
}
headers {
Authorization: Bearer {{process.env.ANILIST_ACCESS_TOKEN}}
Content-Type: "application/json"
Accept: "application/json"
}
body:graphql {
mutation($mediaId:Int, $progress:Int, $status:MediaListStatus){
SaveMediaListEntry(mediaId:$mediaId, progress:$progress, status:$status){
mediaId
progress
status
score
repeat
notes
startedAt{
year
month
day
}
completedAt{
year
month
day
}
}
}
}
body:graphql:vars {
{
"mediaId": 1,
"progress": 26,
"status":"COMPLETED"
}
}

View File

@ -0,0 +1,33 @@
meta {
name: AniList Change Status
type: graphql
seq: 2
}
post {
url: https://graphql.anilist.co
body: graphql
auth: none
}
headers {
Authorization: Bearer {{process.env.ANILIST_ACCESS_TOKEN}}
Content-Type: "application/json"
Accept: "application/json"
}
body:graphql {
mutation($mediaId:Int, $status:MediaListStatus){
SaveMediaListEntry(mediaId:$mediaId, status:$status){
id
status
}
}
}
body:graphql:vars {
{
"mediaId": 1,
"status": "CURRENT"
}
}

View File

View File