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.
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"]
}
Automatically generated Swagger docs are available at:
- Swagger UI:
- JSON schema: