|
|
API endpoints:
|
|
|
|
|
|
* GET url/api/players/username/:userid, fetches the user entity with the given id.
|
|
|
* GET url/api/games/, fetches all games in the database.
|
|
|
* GET url/api/games/gamename/:gameid, fetches the game with given id.
|
|
|
* GET url/api/highscores/gamescore/:userid/:gameid, fetches the users highscore for that game.
|
|
|
* POST url/api/highscores/highscore/:userid/:gameid/:score, post a new highscore for that user for that game with the given value. Creates a new one if one doesn't exist, updates already exist one.
|
|
|
* GET url/api/highscores/userscore/:userid, fetches all highscores for a user (all games).
|
|
|
* GET url/api/highscores/gamescores/:gameid, fetches all highscores for game (all users). |