The AASLF REST-API uses HTTP on port 1312 to allow your browser to
communicate with the server using JSON. This document describes all of
the used requests.
Creates a new game.
Key |
Value |
Game |
The name for the new game |
Player |
The user's name |
Categories |
All the categories that the new game should have |
Key |
Value |
Status |
"ok" if it worked, "err", if not |
ID |
The ID of the newly created game |
Session |
The user's session |
Joins an existing game.
Key |
Value |
Game |
The game's ID |
Player |
The user's name |
Key |
Value |
Status |
"ok" if it worked, "err", if not |
Session |
The user's session |
Starts a game.
Key |
Value |
Game |
The game's ID |
Player |
The user's name |
Session |
The user's session |
Key |
Value |
Status |
"ok" if it worked, "err", if not |
Tells everyone to stop.
Key |
Value |
Game |
The game's ID |
Player |
The user's name |
Session |
The user's session |
Key |
Value |
Status |
"ok" if it worked, "err", if not |
Submits all the answers.
Key |
Value |
Game |
The game's ID |
Player |
The user's name |
Session |
The user's session |
Answers |
The answers |
Key |
Value |
Status |
"ok" if it worked, "err", if not |