Top "Retrofit" questions

Retrofit is a type-safe REST client for Android and Java by Square, Inc.

How to get raw response and request using Retrofit 2.0

I am trying to get the raw response using Retrofit2.0.2. So far I tried to print the response using following …

java android retrofit retrofit2 okhttp
Retrofit 2.0 how to delete?

I am using retrofit 2.0 and I am implementing a delete feature in my Android app, however, I cannot make it …

java android retrofit retrofit2 http-delete
Simulate no network using Retrofit and MockWebServer

I want to simulate the no network case when using RetroFit and MockWebServer. Im currently testing using Espresso and supplying …

android retrofit mockwebserver
OKhttp PUT example

My requirement is to use PUT, send a header and a body to server which will update something in the …

android retrofit okhttp android-networking androidhttpclient
How to create a retrofit.Response object during Unit Testing with Retrofit 2

While using RxJava and Retrofit 2 I am trying to create Unit Tests to cover when my app receives specific responses. …

android unit-testing mockito retrofit rx-java
Android Retrofit 2 Simple XML Converter

I am using Retrofit 2.1.0 and Retrofit SimpleXML Converter 2.1.0. I added simplexmlconverter to retrofit instance with addConverterFactory method. XML is below &…

android xml retrofit retrofit2 simple-framework
Retrofit with Rxjava Schedulers.newThread() vs Schedulers.io()

What are the benefits to use Schedulers.newThread() vs Schedulers.io() in Retrofit network request. I have seen many examples …

android retrofit rx-java rx-android
Unsupported operation: Android, Retrofit, OkHttp. Adding interceptor in OkHttpClient

I am trying to add token based authentication via Retrofit 2.0-beta3 and OkHttpClient in Android using interceptors. But I get …

java android retrofit okhttp retrofit2
Retrofit error-Missing either @GET URL or @Url parameter

I am working on Youtube API. The base URL is <https://www.googleapis.com/youtube/v3/search/> Request :…

android retrofit retrofit2
Handle Paging with RxJava

I'm using Retrofit + RxJava on an Android app and am asking myself about how to handle the API pagination to …

android pagination retrofit rx-java