There was an error while loading. Please reload this page.
The frontend will follow these data structures when communicating with the server
Data format for "game"
{ rounds, [round] isFirstAttempt, (Boolean) }
Data format for "round"
{ roundNum, (Number) backgroundId, (String) timeTaken, (Number) isFound, (Boolean) }
Data format for "email"
{ email, (String) }
Send game result to the server
REQUEST BODY
{ game, }
REQUEST BODY EXAMPLE
{ rounds: [round, round, ...], isFirstAttempt: true, }
RESPONSE (If successful)
201
Save user email so that the user can be notified the outcome of the research
{ email, }
{ email: "user123@example.com", }
Stick Insects Project
Documentation