Skip to content

GalievDev/country-service

Repository files navigation

Country-Service

image

Task

Implement a microservice which provides a list of countries and, in addition, provides more detailed information per country.

  1. Use spring-boot
  2. Use best practices and microservice approach
  3. Implement the following REST API with spring-boot:
GET /countries/
{
  "countries": [
    {
      "name": "Finland",
      "country_code": "FI"
    }
  ]
}
GET /countries/{name}
{
  "name": "Finland",
  "country_code": "FI",
  "capital": "Helsinki",
  "population": 5491817,
  "flag_file_url": "<url to the flag file>"
}
  1. Country service must fetch the relevant information for countries from some other service
  2. Test the implementation as well as it's needed from your perspective
  3. All the implementations must be runnable locally with our own computer. Write needed instructions to README.md file.
  4. Publish all sources code and relevant files in github or similar service and send the link to the repo so that the implementation can be reviewed.
  • You get bonus points if:
    • you use and understand reactor (https://www.baeldung.com/reactor-core)
    • you create a separate wep application which utilizes the created REST API and shows the relevant country information in a browser