For this Magic afternoon, we're going use a combination of GET and POST requests to retrieve and solve puzzles. Each puzzle can be found on this URL by making GET requests from /1
to /30
. Puzzles range in difficulty/points and can be solved by making a POST request to the same URL.
To register your team, make a POST request in JSON to /register
:
{
"team" : "Origin"
}
Making a GET request to /1
returns:
{
"message" : "How would you select an element by an ID?"
}
To solve, make a POST request to /1
in the following format:
{
"team" : "Origin",
"answer" : ''
}
Some resources:
Register your team!
Solve a puzzle!
Solve 10 puzzles!
Solve 20 puzzles!
Solve all 30 puzzles!
The specification is otherwise open-ended to the implementation of the page set-up.