Quick Retrofit Overview
Retrofit establishes a connection with RESTful web services. It communicates with the backend. It creates URI's for the web services based on the parameters we pass to it.
Retrofit needs two things to build a web services API, the first one is?base URI?and the second is?Converter Factory.
WHY DO WE NEED A CONVERTER FACTORY?
When retrofit sends the request to the server with the help of base URI then the server sends back the response in JSON or XML most of the time. After getting the response, retrofit does not know what to do with that response, here comes the Converter Factory. Converter Factory tells the retrofit what to do with the response (JSON/XML) whether to convert it into a string or in a Kotlin/Java Objects.
Request -> Remote Server -> Response(JSON) -> Converter Factory -> Our App
This was a quick overview of Retrofit. Let me know your thoughts on Retrofit.