Here is a small description about what I am trying to do
- Build a set of APIs for online game play
- my GET API i want to return all open games (list of gameIds) GET /api/games/
- my POST API i want to create a new game POST /api/games/
My question is what should my POST API return. Ideally I would want client to know the gameId of the newly created game, so that all operations specific to the game can then use following syntax /api/games/gameId
Any suggestions, on how I communicate this gameId back to client?