Implement a microservice which provides a list of countries and, in addition, provides more detailed information per country.
- Use spring-boot
- Use best practices and microservice approach
- 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>"
}
- Country service must fetch the relevant information for countries from some other service
- You could use for example the following service: https://countriesnow.space/
- Test the implementation as well as it's needed from your perspective
- All the implementations must be runnable locally with our own computer. Write needed instructions to README.md file.
- 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