In this project, you will use Spring Data JPA to power an Olympics analytics web app.
You can use cURL to manually test your API endpoints.
Here are some example cURL requests and responses.
curl --request GET "http://localhost:3001/countries?sort_by=name&ascending=y"
{"countries":[{"name":"Afghanistan","code":"AFG","gdp":594.32,"population":32526562,"medals":0},...]}
curl --request GET "http://localhost:3001/countries/united%20states"
{"name":"United States","gdp":"56115.72","population":"321418820","numberMedals":"2477","numberSummerWins":"2302","percentageTotalSummerWins":"21.957268","yearFirstSummerWin":"1896","numberWinterWins":"175","percentageTotalWinterWins":"9.1098385","yearFirstWinterWin":"1924","numberEventsWonByFemaleAthletes":"747","numberEventsWonByMaleAthletes":"1730"}
Get the list of Gold medal winners for the United States Olympic team, sorted by the athlete's name in descending order
curl --request GET "http://localhost:3001/countries/united%20states/medals?sort_by=name&ascending=n"
{"medals":[{"year":1968,"city":"Mexico","season":"Summer","name":"ZORN, Zachary","country":"United States","gender":"Men","sport":"Aquatics","discipline":"Swimming","event":"4X100M Freestyle Relay"},...]}