Top "Retrofit2" questions

Retrofit2 is the second version of the type-safe REST client Retrofit for Android and Java.

How to get Retrofit success response status codes

I am not able to get success response status code from response like 200,201.. etc. As we can easily get error …

android retrofit retrofit2
How can I handle empty response body with Retrofit 2?

Recently I started using Retrofit 2 and I faced an issue with parsing empty response body. I have a server which …

android retrofit retrofit2 square
Retrofit Post Parameter

I am implementing login feature and for that using Post request but i am getting error saying "retrofit.RetrofitError: com.…

java android rest retrofit retrofit2
Is it possible to show progress bar when upload image via Retrofit 2?

I'am currently using Retrofit 2 and i want to upload some photo at my server. I know, that older version uses …

android retrofit2
How to get string response from Retrofit2?

I am doing android, looking for a way to do a super basic http GET/POST request. I keep getting …

java android http retrofit2
Retrofit2 error java.io.EOFException: End of input at line 1 column 1

I called PATCH web service using Retrofit2 but onResponse is not called and the onFailure is called Despite of the …

android web-services retrofit2
How to make multiple request and wait until data is come from all the requests in retrofit 2.0 - android

current code: Retrofit retrofit = new Retrofit.Builder() .baseUrl(Constant.BASEURL) .addConverterFactory(GsonConverterFactory.create()) .build(); APIService service = retrofit.create(APIService.class); …

android retrofit2
Retrofit 2 with only form-data

I am trying to make POST request using the Retrofit 2. The request type is form-data NOT application/x-www-form-urlencoded. I am …

android retrofit2 form-data
retrofit 2 @path Vs @query

I am new to retrofit 2 library.I read several articles to get started as a beginner and I managed to …

java android rest retrofit2
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