Top "Retrofit" questions

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

Retrofit: multiple query parameters in @GET command?

I am using Retrofit and Robospice to make API calls in my android application. All @POST methods work great, and …

android api get retrofit robospice
why use Retrofit when we have OkHttp

with OkHttp we can make HTTP request then get response from server OkHttpClient client = new OkHttpClient(); Request request = new Request.…

java android retrofit okhttp
Getting Header from Response (Retrofit / OkHttp Client)

I am using Retrofit with the OkHttp Client and Jackson for Json Serialization and want to get the header of …

android json jackson retrofit okhttp
How can I return String or JSONObject from asynchronous callback using Retrofit?

For example, calling api.getUserName(userId, new Callback<String>() {...}); cause: retrofit.RetrofitError: retrofit.converter.ConversionException: com.google.gson.…

android retrofit retrofit2
Unable to create call adapter for io.reactivex.Observable

I'm going to send a simple get method to my server(it is Rails app) and get the result using …

retrofit rx-java retrofit2 rx-android rx-java2
How to unit test Retrofit api calls?

I am trying to integrate Unit test cases for every chunk of code possible. But I am facing issues while …

android unit-testing junit android-gradle-plugin retrofit
retrofit convertor factory can not access GsonConverterFactory

I have included these dependencies to my project: compile 'com.squareup.retrofit:retrofit:2.0.0-beta2' compile 'com.squareup.retrofit:converter-gson:2.0.0…

android gson retrofit
How to send multipart/form-data with Retrofit?

I want to send an Article from and Android client to a REST server. Here is the Python model from …

android image-uploading multipartform-data retrofit
Using Retrofit to access JSON arrays

I thought I understood how to do this, but obviously not. I have my API from Flickr, which begins like …

java android retrofit
Android Retrofit: content type as application/x-www-form-urlencoded

Fairly new to android development. I am trying to use retrofit to send a post request. In my retrofit logs, …

android post retrofit