User Story #4: GET api/v1/olympian_stats
Opened this issue · 0 comments
alect47 commented
As a user,
I can make a GET request to api/v1/olympian_stats.
-
A successful GET request will return a JSON response
-
Complete endpoint
-
Account for sad paths
-
Fully tested
-
Deployed to Heroku
-
Request:
GET api/v1/olympian_stats
- Response
{
"olympian_stats": {
"total_competing_olympians": 3120
"average_weight:" {
"unit": "kg",
"male_olympians": 75.4,
"female_olympians": 70.2
}
"average_age:" 26.2
}
}