]> git.cworth.org Git - lmno-todo/blobdiff - TODO
nogit-sync commit
[lmno-todo] / TODO
diff --git a/TODO b/TODO
index 43b30ef53952844f7cded9532e17b997f9d71a4f..48fb75a7402b82b47560c366425f780460eae541 100644 (file)
--- a/TODO
+++ b/TODO
@@ -68,21 +68,44 @@ Flempires (flutter-based client)
 
 Bring client up to latest Empires API approach
 
-  Pre-allocate a game ID in the server for flempires to use (QRST, say)
+  [🗸] Pre-allocate a game ID in the server for flempires to use (QRST, say)
 
-  Change flempires from using https://families.cworth.org/api to
-  instead use https://lmno.games/empires/QRST
+  [ ] Change flempires from using https://families.cworth.org/api to
+      instead use https://lmno.games/empires/QRST
 
-  Add UI to ask user for a game ID, (obviating the QRST ID)
+  [ ] Add UI to ask user for a game ID, (obviating the QRST ID)
 
-  Add UI to generate a new game ID, (allow flempires to work on its own)
-  Example:
-               curl -X POST https://lmno.games/new/empires
+  [ ] Add UI to generate a new game ID, (allow flempires to work on its own)
+      Example:
+                curl -X POST https://lmno.games/new/empires
                 Returns: "WLJG"
 
-  Implement player registration by POSTing to /register (without cookie)
-
-  Implement registration with /profile and then /register (requires cookie)
+  [ ] Implement player registration by POSTing to /register (without cookie)
+      Example:
+                curl -X POST \
+                     -H 'Content-Type: application/json' \
+                     -d '{"name": "Carl", "character": "Elvis"}' \
+                     https://lmno.games/empires/QRST/register
+                Returns: 1 (Or some other player ID value)
+
+  [ ] Implement registration with /profile and then /register
+
+      Note: This approach requires obtaining a cookie from the
+      /profile request and then providing that cookie on the
+      subsequent /register request. The -c and -b command-line options
+      of curl can be used to demonstrate this:
+
+      Example:
+                curl -c cookie-file \
+                     -X PUT \
+                     -H 'Content-Type: application/json' \
+                     -d '{"nickname": "Cookie"}' \
+                     https://lmno.games/profile
+                curl -b cookie-file \
+                     -X POST \
+                     -H 'Content-Type: application/json' \
+                     -d '{"character": "Cookie Monster"}'
+                     https://lmno.games/empires/QRST/register
 
 Scribe
 ======