1 Gameplay API endpoints (within a current game)
2 ==============================================
7 Behavior: Adds a new player with "name" and "character" and assigns an id. Also will add a new empire with empty "captured" array
9 Example data: { "name": "Carl", "character: "Elvis" }
15 Behavior: Removes an existing player with the given ID
21 Behavior: Removes all players (bulk deregister)
27 Behavior: Eliminates all current empire ownership so the existing
28 players can start a new game
34 Behavior: Indicate that empire ID1 has now captured ID2
40 Behavior: Indicate that empire ID is no longer captured (undoing a
47 Behavior: Returns a lists of all character names (in alphabetical order)
49 Example data: [ "Einstein", "Elvis", "Fred Flintstone" ]
55 Behavior: Shows which empires have been captured by other empires
57 Example data [ { "id": 1, "captures": [] },
58 { "id": 2, "captures": [1] },
59 { "id": 3, "captures": [4, 5, 6] },
60 { "id": 4, "captures": [2] },
61 { "id": 5, "captures": [] },
62 { "id": 6, "captures": [] } ]
68 Behavior: Gets a list of all the player objects (without their
71 Example data: [ { id: 1, name: "Carl" }, { id: 2, name: "Kevin" } ]
75 There's a sample server available at: https://families.cworth.org/
77 We plan to move this to https://empires.cworth.org at some point.