Browse Source

Update API design

Kirk Trombley 4 years ago
parent
commit
36cf286ee2
1 changed files with 3 additions and 3 deletions
  1. 3 3
      README.md

+ 3 - 3
README.md

@@ -31,7 +31,7 @@ GET /caches
         "caches": [
             {
                 "generationMethod": string,
-                "onlyAmerica": boolean,
+                "countryLock": string,
                 "size": number
             }, ...
         ]
@@ -40,7 +40,7 @@ PUT /game
     Accepts {
         "timer": number,
         "rounds": number,
-        "onlyAmerica": boolean (default: false),
+        "countryLock": string (default: "--"),
         "generationMethod": string (default: "MAPCRUNCH"),
         "ruleSet": string (default: "NORMAL")
     }
@@ -51,7 +51,7 @@ GET /game/{game_id}/config
     Returns 404 vs 200 and {
         "timer": number,
         "rounds": number,
-        "onlyAmerica": boolean,
+        "countryLock": string,
         "generationMethod": string,
         "ruleSet": string
     }