Skip to content

emhgit/goldmedal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gold Medal Metrics Challenge Project

This is my implementation of the backend API using Java Spring Boot. Below is the project overview:

Overview

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

Project Screenshot

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

Web application that displays hundreds of years of Olympics data

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages