Skip to content

devdatto/cityconnect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cityconnect

Project for Spring Boot to check if two cities are connected by road

The data is loaded at startup from an input file

Data file format

 Portland,Seattle
 Portland,San Francisco
 Seattle,Vancouver
 San Francisco,Los Angeles
 Los Angeles,San Diego
 Spokane,Bellevue
 Bend,Eugene

API details

The connectivity between two cities is checked by making a GET call to the end-point /connected and passing two parameters - origin and destination. The two cities might be directly connected or there can be multiple hops between them

Sample API calls

1. localhost:8080/connected?origin=Boston&destination=Philadelphia
2. localhost:8080/connected?origin=Portland&destination=Seattle

Swagger

http://localhost:8080/swagger-ui.html

Monitoring

To use JAMon, change the logging level to TRACE in logback configuration

Performance testing

Use Jmeter with the .jmx file and the test data under the ./performance directory

Unit test coverage

jacoco-report/index.html is generated as part of the build under the ./target directory.

About

Project for Spring Boot to check if two cities are connected by road

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors