Filter Athletes
Filter by name
By using the /athletes
endpoint and passing name
as a query parameter, you can filter for athletes by name.
Request:
Filter by last name
By using the /athletes
endpoint and passing lastName
as a query parameter, you can filter for athletes by last name.
Request:
Filter by team
By using the /athletes
endpoint and passing team
as a query parameter, you can filter for athletes by team.
Request:
Filter by email
By using the /athletes
endpoint and passing email
as a query parameter, you can filter for athletes by email address.
Request:
Join filters
You can filter athletes using all query parameters and merge them all.
Example: All athletes with a certain name who belongs to a certain team.
Example: All athletes with a last name of Gracie
, and belongs to the academy Gracie
, with a limit of 5
athletes and an offset of 5
.
Example: All athletes who belongs to the team Alliance
, and with a limit of 10
athletess and an offset of 10
.
Note: Soon, more query parameters will be added to this route as more properties will be added to the Athlete model.