This is a technical internship task from Vipps. The task is to retrieve information from Restful countries API and show it in an Android app.
The task is structured in two different parts. First part is to fetch the API by generating an auth token and retrieve information about:
- The country name
- The country capital
- The name of the current president
Refer to the documentation to generate an auth token and query by country, where you replace {country} with the name of a country of your choice.
Display a search field and a button so the user can search for any country and show the information from part 1.
The UI does not need to be advanced, just a simple input field and a button.
Here’s an example of how it should work:
- User enters "Norway" in the search field.
- The app fetches and displays:
- Country: Norway
- Capital: Oslo
- President: Not applicable (replace with "Prime Minister: Jonas Gahr Støre").