RJones92 / MiniGolfScoreCard

1 stars 0 forks source link

Make API endpoints more RESTful. #27

Closed RJones92 closed 3 years ago

RJones92 commented 3 years ago

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

RJones92 commented 3 years ago

/scores - already implemented /scores/{scoreId} - no use case. Not implementing

RJones92 commented 3 years ago

Updating this, I think to get the scores for a tournament it should be: /tournament/{tournamentId}/scores And for player: /player/{playerId}/scores

RJones92 commented 3 years ago

Closed - tidied up controllers and removed unused endpoints. Will re-implement if required