X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=lmno.txt;fp=lmno.txt;h=3caa2361e8276e64b4033a6d2d088e7cec75825d;hb=5c24a08cc64da0987e18e5ef941e05c135298cf2;hp=0000000000000000000000000000000000000000;hpb=07dc9ba69e0edba9cbae6b71ded6f2b8ca17f14a;p=lmno-api diff --git a/lmno.txt b/lmno.txt new file mode 100644 index 0000000..3caa236 --- /dev/null +++ b/lmno.txt @@ -0,0 +1,78 @@ +Web interface for lmno.games server +=================================== +https://lmno.games/* +-------------------- +Serves static content (if file exists in filesystem), +otherwise proxies to dynamic server. + +https://lmno.games/ +------------------ +Type: Static + +Form: "Join game: (ID)" + + Dynamic lookup + Redirects to https://lmno.games/// + For example: https://lmno.games/empires/WXYZ/ + +Links: Host a new game: + + "Empires" links to https://lmno.games/empires + + "Other game" links to https://lmno.games/other_game + + etc. + +https://lmno.games/WXYZ/ +------------------------ +Type: Dynamic + + Redirects to https://lmno.games//WXYZ/ + +https//lmno.games/new/ (POST) +------------------------------------- +Type: Dynamic + +Creates a new, unique game ID and returns it as a JSON string + + Returns: "WXYZ" + +https://lmno.games/empires +-------------------------- +Type: Static + +Form: Start a new game + + Sends POST to https://lmno.games/new/empires + Receives game ID as a JSON string (for example, "WXYZ") + +https://lmno.games/empires/WXYZ?flavor=flutter +---------------------------------------------- +Type: Dynamic (to lookup game ID), but otherwise a static result + +Serves game content (either the default or the "flutter" flavor) + +Buttons, forms, etc.: + + https://lmno.games/WXYZ/empires/register (form action="/empires/register") + https://lmno.games/WXYZ/empires/events + etc. + +Native mobile client +==================== +Join game (ID): + + Client saves game ID (WXYZ, say) + +Client queries game state + + https://lmno.games/WXYZ/empires/players + +Client posts game updates: + + https://lmno.games/WXYZ/empires/register + etc. + +New game: + + https://lmno.games/