User Story #6: GET api/v1/events/:id/medalists
Opened this issue · 0 comments
alect47 commented
As a user,
I can make a GET request to the endpoint api/v1/events/:id/medalists.
-
If GET request is successful, I see a JSON response with all olympians who have received a medal for that event
-
Complete endpoint
-
Account for sad paths
-
Fully Tested
-
Deployed to Heroku
-
Request
GET api/v1/events/:id/medalist
- Response
{
"event": "Badminton Mixed Doubles",
"medalists": [
{
"name": "Tontowi Ahmad",
"team": "Indonesia-1",
"age": 29,
"medal": "Gold"
},
{
"name": "Chan Peng Soon",
"team": "Malaysia",
"age": 28,
"medal": "Silver"
}
]
}