Skip to content

Latest commit

 

History

History
38 lines (32 loc) · 1.06 KB

README.md

File metadata and controls

38 lines (32 loc) · 1.06 KB

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.