/addplayer should return a json document of the newly created player
Quist opened this issue · 1 comments
Quist commented
When a player has been created, the api should return a json document with the newly created player, containing all attributed(id, ranking, etc.). This allows the client to update the list of players, without having to query for the entire player list.
Also, should we consider to follow a more restful pattern of the api endpoints?
Instead of /addplayer(POST), we can have /players (POST).
http://www.vinaysahni.com/best-practices-for-a-pragmatic-restful-api
Molyna commented
Will be done as part of the splitting between front and back.