From bfc4f9e816f39f652df8d71a0fa7a2b26412226c Mon Sep 17 00:00:00 2001 From: Shii Kayano Date: Tue, 20 Aug 2019 23:49:31 +1200 Subject: [PATCH 1/2] Add missing /v2/quests Mirroring the current API structure. --- v2/quests.js | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 v2/quests.js diff --git a/v2/quests.js b/v2/quests.js new file mode 100644 index 00000000..74292a14 --- /dev/null +++ b/v2/quests.js @@ -0,0 +1,55 @@ +// Normal bulk-expanded endpoint for dumping quests +// within the Personal Story and Living World. + +// GET /v2/quests + +[ 15, 16, 17, /* ... */ ] + +// GET /v2/quests/15 + +{ + "name": "Explosive Intellect", + "level": 1, + "story": 8, + "goals": [ + { + "active": "Stop the hostile golems.", + "complete": "The Inquest released a flood of hostile golems to cover up a brazen daylight data theft. With the help of Zojja and Mr. Sparkles, I defeated the Inquest agents, their golems, and the monstrous Prototype X." + } + ], + "id": 15 +} + +// GET /v2/quests?page_size=2,page=0 +// GET /v2/quests?ids=15,25 + +[ + { + "name": "Explosive Intellect", + "level": 1, + "story": 8, + "goals": [ + { + "active": "Stop the hostile golems.", + "complete": "The Inquest released [...]" + } + ], + "id": 15 + }, + { + "name": "Snaff Would Be Proud", + "level": 10, + "story": 8, + "goals": [ + { + "active": "Join your krewe to compete for the Snaff Prize.", + "complete": "" + }, + // ... + ], + "id": 25 + } +] + +// NOTES: +// * "story" refers to /v2/stories From 3821cf748309353feec74d33d74a45949cc076a1 Mon Sep 17 00:00:00 2001 From: Shii Kayano Date: Wed, 21 Aug 2019 00:00:15 +1200 Subject: [PATCH 2/2] Add /v2/characters/:id/quests Mirror current API structure. --- v2/characters/quests.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 v2/characters/quests.js diff --git a/v2/characters/quests.js b/v2/characters/quests.js new file mode 100644 index 00000000..06ab0be3 --- /dev/null +++ b/v2/characters/quests.js @@ -0,0 +1,11 @@ +// GET /v2/characters/Hello/quests +// Authorization: Bearer oauth2-token +// Requires "account", "characters" permissions. + +[ + 123, + 117, + 371, + 372, + 390 +]