Skip to content

JiriFrankCZ/ukol-2022

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backend Developer Test

Java CI with Maven

Your task is to create a simple Spring Boot service, that is able to calculate any possible land route from one country to another. The objective is to take a list of country data in JSON format and calculate the route by utilizing individual countries border information.

Specifications

  • Spring Boot, Maven
  • Data link: https://raw.githubusercontent.com/mledoze/countries/master/countries.json
  • The application exposes REST endpoint /routing/{origin}/{destination} that returns a list of border crossings to get from origin to destination
  • Single route is returned if the journey is possible
  • Algorithm needs to be efficient
  • If there is no land crossing, the endpoint returns HTTP 400
  • Countries are identified by cca3 field in country data
  • HTTP request sample (land route from Czech Republic to Italy):
    • GET /routing/CZE/ITA HTTP/1.0 :
{
"route": ["CZE", "AUT", "ITA"]
}

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages