Gateway
GET {{airtable_url}}
Spell Database
The best reference for all things Harry Potter is the Harry Potter Lexicon. From this page on Harry Potter Offensive/Defensive Magic, I created a Airtable base with name, power and mode as the fields of the table.

Pre-Request Script: Gateway
is responsible to pick a question and to decide the workflow which the request needs to follow.
The distinguishing factor between a user starting a new game and user request returning with an answer is the presence of payload.

Within the request, we are accessing the Airtable API to get all the spells stored in the table.
Test Script: With spells in the response - We'll clean the response - Pick a question - Check if an answer exists - Pick 3 more random answers - Alphabetically sort the answers - Store everything into respective environment variables
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string |