How I use Retrofit in Android application


Retrofit is a type-safe REST client library released by Square. It provides us with an easy-to-use api with as little boilerplate code as possible, loose coupling between classes and programming to interfaces. Before I started using Retrofit I had been implementing my REST client logic with Volley which was not bad at all but there were some things that I wasn’t comfortable with