Welcome to Rolling Dices API. An API developed using Laravel PHP framework.
Please remeber to use the prefix '/api/v1/' in all your API requests in order to route them correctly.
Enjoy!
The following routes have been implemented:
POST /players : create a player
PUT /players/{id} : edit player's name
POST /players/{id}/games/ : a particular player rolls the dices
DELETE /players/{id}/games: delete a player's games
GET /players: returns the list of players and its average wins rate
GET /players/{id}/games: returns the list of games of a particular player
GET /players/ranking: returns the ranking
GET /players/ranking/loser: returns the player with lowest wins rate
GET /players/ranking/winner: returns the player with highest wins rate
DELETE /players/{id}: delete a player