allieIsOkay / allieIsOkay/koroibos

Add oldest query parameter for Olympians endpoint

Open
#24 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

As a user,

I can submit a request to the endpoint /api/v1/olympians with a query parameter of age=oldest and receive the oldest Olympian in the system, formatted identically to the normal index.

Sample response:

``` JSON
{
"olympians": [
{
"name": "Julie Brougham",
"team": "New Zealand",
"age": 62,
"sport": "Equestrianism"
"total_medals_won": 0
}
]
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.