X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=api.text;h=f4ea703d3cd33d49f30845a5646eb54bae3f04d1;hb=9e13e7ccf1313d83e3d253a2c490988ff3d2b833;hp=91a390cb927e705a6aa7a85aeca8fb05b9189d2a;hpb=7a14f1f7d3afb0bd58c817996ec1ec2144e13d54;p=lmno-api diff --git a/api.text b/api.text index 91a390c..f4ea703 100644 --- a/api.text +++ b/api.text @@ -33,7 +33,7 @@ Gameplay API endpoints (within a current game) Behavior: Indicate that empire ID1 has now captured ID2 -/escape/ +/liberate/ Method: POST @@ -54,12 +54,12 @@ Gameplay API endpoints (within a current game) 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 @@ -70,14 +70,8 @@ Gameplay API endpoints (within a current game) Example data: [ { id: 1, name: "Carl" }, { id: 2, name: "Kevin" } ] -/players/ - - 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.