Skip to content

This is a Spring example project to work with repositories and a Controller. This is based on the Codecademy Java Spring skill path project.

License

Notifications You must be signed in to change notification settings

c4sh/gold-medal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gold Medal Metrics Challenge Project

Overview

In this project, you will use Spring Data JPA to power an Olympics analytics web app.

Testing

You can use cURL to manually test your API endpoints.

Here are some example cURL requests and responses.

Get countries, sorted by name in ascending order

curl --request GET "http://localhost:3001/countries?sort_by=name&ascending=y"                                   

{"countries":[{"name":"Afghanistan","code":"AFG","gdp":594.32,"population":32526562,"medals":0},...]}

Get the details for the United States Olympic team

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"},...]}

About

This is a Spring example project to work with repositories and a Controller. This is based on the Codecademy Java Spring skill path project.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages