When augmenting the test suite, I noticed I needed this value and was
surprised it wasn't already being returned.
With this change we bump the version up to 0.8.
Empires Game Protocol
=====================
Empires Game Protocol
=====================
For a specific game the following API endpoints are defined.
(Note: Only the trailing portion of the API URI is provided here.
For a specific game the following API endpoints are defined.
(Note: Only the trailing portion of the API URI is provided here.
Behavior: Adds a new player with "name" and "character" and
assigns an id. Also will add a new empire with empty "captured"
Behavior: Adds a new player with "name" and "character" and
assigns an id. Also will add a new empire with empty "captured"
+ array. Returns the numeric ID of the new player.
Note: If the client supports cookies and has previously set a
nickname in the current session via the upper-level /profile API,
Note: If the client supports cookies and has previously set a
nickname in the current session via the upper-level /profile API,
Example data: { "name": "Carl", "character: "Elvis" }
Example data: { "name": "Carl", "character: "Elvis" }
+ Example return data: 2
+
/deregister/<ID>
Method: POST
/deregister/<ID>
Method: POST