GitXplorerGitXplorer
r

pwc-assignment-project

public
5 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
f3a557ca0ca14dbde7e601d516be808f37403dfe

Task assignemnt project repo init

rramazansakin committed 2 years ago

README

The README file for this repository.

Backend Developer Test

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" ] }

Expected deliveries:

  1. Source code
  2. Instructions on how to build and run the application
    • You can run the application via run.sh script directly on linux-based terminal.

How to call the API

There is just one API and the full URL of it is :

HTTP:GET localhost:8080/v1/route-management/routing/CZE/ITA