- Kotlin
- View Binding
- ViewModel
- Live data
- I didn't use Dagger hilt for DI as it's considered as 3rd parties.
Mvvm, Mvi for Home Activity.
We need you to create an application that will help in testing backed APIs. This application must allow us to do the following:
- Enter URL to connect to
- Add request headers which numbers are dynamic
- App must support GET/POST a. For POST request type, App must provide a way to enter request body as string
- After request completion the app needs to display the following: a. Response code b. Error if any c. Request/Response headers d. Request body or query parameters depending on request type /Response body
- If the device is offline then app must show an error message and do not make the call
Your app must not use any third party libraries. We consider (Retrofit, volley, coroutines, room….etc) as 3rd parties
Without using List view or Recycler view.
We validate the following befor making any API call
URL using -> REGEX
Request type (GET / POST)
used: Executers
used: HttpURLConnection
GET request: Daily cat facts
POST request: https://reqres.in/api/users
Request body -> {\"name\": \"Upendra\", \"job\": \"Programmer\"}