GET Request to get my game results should give me the total victories and losses and the game history.
GET game_results should give me total victories, losses and points + all the games I did with:
timestamp (date + time) (timestamp of when you got the POST request for the game)
is_ai
opponent's name
score
game duration
Each user should have a game history. If no game, then victories = 0 and losses = 0.
Currently, if I make a request to get the game history for a user and there is nothing saved, it gives me an error. It should not give an error, it should have data saved for victories = 0 and losses = 0.
Also check #24
==> Can be the same API as getting the history of another player (see #20)
This is for MY game results / history
GET Request to get my game results should give me the total victories and losses and the game history. GET game_results should give me total victories, losses and points + all the games I did with:
Each user should have a game history. If no game, then victories = 0 and losses = 0. Currently, if I make a request to get the game history for a user and there is nothing saved, it gives me an error. It should not give an error, it should have data saved for victories = 0 and losses = 0.
Also check #24
==> Can be the same API as getting the history of another player (see #20)