Building REST Clients with Retrofit 2
Building REST Clients with Retrofit 2

Building REST Clients with Retrofit 2

Author
Shiv Bade
Tags
retrofit
rest
client
Published
August 26, 2018
Featured
Slug
Tweet
On Android and JVM, Retrofit 2 became my go-to HTTP client.
Setup was easy:
Retrofit retrofit = new Retrofit.Builder() .baseUrl("https://api.example.com/") .addConverterFactory(GsonConverterFactory.create()) .build();
I especially liked: - Interface-based declarative APIs - Easy mocking with interceptors - Integration with RxJava
A must-have when working with external APIs.