This is an API wrapper through which users should be able to get information about specific country.
Consumers of the API should send HTTP request with the country name and the information they desire. The API should get all the information about the given country from a public RESTCountries API, parse it and respond with the requested information.
The API is covered by both unit tests and integration tests.
A dummy API is provided to be able to run these tests locally without the need of an internet connection or any external resources
Below are some of the REST endpoints that could be used to search for information about a country.
Request all information about a country.
http://localhost:5000/{country_name}
Request a country name.
http://localhost:5000/{country_name}?info=name
Request a country’s top level domain.
http://localhost:5000/{country_name}?info=topLevelDomain
Request a country’s alpha 2-code.
http://localhost:5000/{country_name}?info=alpha2Code
Request a country’s alpha 3-code.
http://localhost:5000/{country_name}?info=alpha3Code
Request a country’s calling code.
http://localhost:5000/{country_name}?info=callingCodes
Request a country’s capital.
http://localhost:5000/{country_name}?info=capital
Request a country’s region.
http://localhost:5000/{country_name}?info=region
Request a country’s sub-region.
http://localhost:5000/{country_name}?info=subregion
Request the population of a country.
http://localhost:5000/{country_name}?info=population
Request the spoken languages in a country.
http://localhost:5000/{country_name}?info=languages