Closed RJones92 closed 3 years ago
/scores - already implemented /scores/{scoreId} - no use case. Not implementing
Updating this, I think to get the scores for a tournament it should be:
/tournament/{tournamentId}/scores
And for player:
/player/{playerId}/scores
Closed - tidied up controllers and removed unused endpoints. Will re-implement if required
This is so the API is RESTful. Example: /Scores - should return all scores /Scores/{scoreId} - should return particular score (no use case) /Scores?tournamentYear=2015 - should return the scores for a particular tournament year. /Scores?playerId=2 - (we might already have this one...but using player name instead of ID. better to use Id) /Scores?playerFirstName=John&playerLastName=Smith - same as above, think we already have this