Top "Retrofit" questions

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

Get response status code using Retrofit 2.0 and RxJava

I'm trying to upgrade to Retrofit 2.0 and add RxJava in my android project. I'm making an api call and want …

android retrofit rx-java android-networking rx-android
How to dynamically set headers in Retrofit (Android)

I am using an API that uses an authorization scheme that requires a special "X-Authorization" header to be set to …

android retrofit
Get raw HTTP response with Retrofit

I want to get the raw http response from my API REST. I have tried with this interface: @POST("/login") @…

java jackson retrofit
Retrofit 2.0 - How to get response body for 400 Bad Request error?

So when I make a POST API call to my server, I get a 400 Bad Request error with JSON response. {  "…

android retrofit
POST with Android Retrofit

I'm new to Android programming and working with Retrofit. I've done a bunch of research on this topic, but haven't …

android android-asynctask android-networking androidhttpclient retrofit
Retrofit 2.0 throwing "IllegalArgumentException: @Field parameters can only be used with form encoding". How to do right API query and fix it?

My problem is that I don't know how to start using Retrofit 2.0 with received API - mentioned below... Firstly, I …

java android api retrofit retrofit2
SocketTimeoutException in Retrofit

I am trying to POST request to server for fetch data but sometime It's occure SocketTimeoutException! I used Ok3Client …

android retrofit okhttp socket-timeout-exception
Retrofit2.0 gets MalformedJsonException while the json seems correct?

I am using retrofit:2.0.0-beta4 for my android app. I tried to add a user with Retrofit, the user is …

android json gson retrofit retrofit2
retrofit 2.0 how to print the full json response?

I am moving from Volley to Retrofit currently version 2.0. How to print the the full json response code ? includes: compile …

java android http android-activity retrofit
OkHttp/Retrofit default timeout

I was wondering how many seconds should I set to my retrofit client. How many seconds should I use as …

android timeout httprequest retrofit okhttp