https://github.com/prabha1729/airport-info
This is a spring boot web project that returns airport information & the distance between the 2 airports in miles.
https://github.com/prabha1729/airport-info
airport-information spring-boot spring-boot-web spring-data-jpa
Last synced: 3 months ago
JSON representation
This is a spring boot web project that returns airport information & the distance between the 2 airports in miles.
- Host: GitHub
- URL: https://github.com/prabha1729/airport-info
- Owner: prabha1729
- Created: 2020-08-04T17:05:31.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-05T02:23:15.000Z (almost 5 years ago)
- Last Synced: 2025-01-20T06:37:08.582Z (5 months ago)
- Topics: airport-information, spring-boot, spring-boot-web, spring-data-jpa
- Language: Java
- Homepage:
- Size: 71.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Grainger Coding Challenge
This is a spring boot web project that returns
- airport information
- the distance between the 2 airports in miles.# Reach out to me
[](https://www.linkedin.com/in/prabhakargaddam/)
[]()
# Execution
```
# To build the project standard maven build is sufficient
mvn clean install# To start/run the project spring boot maven plugin is included just run
mvn spring-boot:run# The integration test may be executed using
mvn test
```
# Usage
Once the application is started,
## To get the Airport Info
- Goto http://localhost:8082/airport/{IATAcode} which return all information available about the airport inputted.## To get the distance between airports
- Goto http://localhost:8082/airport?originAirportCode={IATAcode}&destinationAirportCode={IATAcode} return the distance in miles between the 2 airports## For Example
- http://localhost:8082/airport/ORD
- http://localhost:8082/airport/distance?originAirportCode=ORD&destinationAirportCode=JFK## You may also like...
- [Stock Trade ](https://github.com/prabha1729/Hacker-Rank-Stock-Trade-Api) - A RESTful service to manage trades using Spring Boot framework
- [Contact System](https://github.com/prabha1729/Spring-Boot-RESTful-Api) - A Spring Boot RESTful service for Contact Entry System.