Template:RestAPI

From Coder Merlin
Revision as of 17:48, 6 October 2021 by Yong-yan (talk | contribs) (Created page with "<div style="background-color: linen; border: solid thin black; padding:4px; color: midnightblue; font-family:'Courier New', Courier, monospace; text-align: left;"> <div style=...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
POST /games?difficulty=<difficulty>
Creates a new game and associated board
   Parameters: 
   difficulty: easy | medium | hard | hell
   Body: none
   Status code: 201 Created
   Response: ID of newly created game
   {"id" : <id>}