Behavior: Indicate that empire ID1 has now captured ID2
-/escape/<ID>
+/liberate/<ID>
Method: POST
Behavior: Shows which empires have been captured by other empires
- Example data [ { "id": 1, "captured": [] },
- { "id": 2, "captured": [1] },
- { "id": 3, "captured": [4, 5, 6] },
- { "id": 4, "captured": [2] },
- { "id": 5, "captured": [] },
- { "id": 6, "captured": [] } ]
+ Example data [ { "id": 1, "captures": [] },
+ { "id": 2, "captures": [1] },
+ { "id": 3, "captures": [4, 5, 6] },
+ { "id": 4, "captures": [2] },
+ { "id": 5, "captures": [] },
+ { "id": 6, "captures": [] } ]
/players
Example data: [ { id: 1, name: "Carl" }, { id: 2, name: "Kevin" } ]
-/players/<id>
-
- Method: GET
-
- Behavior: Get a single player by its id
-
Server
======
-There's a sample server available at: https://families.cworth.org/
+There's a sample server available at: https://families.cworth.org/api/
We plan to move this to https://empires.cworth.org at some point.