/routing-homework

Simple Spring Boot service to calculate any possible land route from one country to another.

Primary LanguageJava

Build Actions Status codebeat badge

Routing Homework

Getting started

To run automated tests execute the following command:

mvn test

To start the application run:

mvn spring-boot:run

Or use the provided wrapper script.

Documentation

The service provides a single endpoint /routing/AAA/BBB where AAA and BBB are three-letter country codes defined in ISO 3166-1 for which you can calculate a possible land route.

For example, calling curl -X GET http://localhost:8080/routing/CZE/RUS will return the following route:

{
    "route": ["CZE","POL","RUS"]
}

Api documentation

Automatically generated Swagger docs are available at: