platzi/platzi-osvaldo-course-mrpc-glue-osvaldo-trejo
Text Classification
•
Updated
•
9
None defined yet.
POST /api/games
- Create a new gameGET /api/games/:gameId
- Get the current game statePOST /api/games/:gameId/move
- Make a move (up, down, left, right)DELETE /api/games/:gameId
- Delete a gameGET /api/games/:gameId/image
- Generate an image of the game boardcurl -X POST -H "Content-Type: application/json" -d '{"size": 4}' http://localhost:3000/api/games
curl -X POST -H "Content-Type: application/json" -d '{"direction": "up"}' http://localhost:3000/api/games/:gameId/move
curl -X GET http://localhost:3000/api/games/:gameId