Results for retrofit
I have been using Retrofit for API calling. In one of the API sending two different response and trying to get them in Map But in generated file it is...
I want to send enum class to API via Retrofit. For parsing I'm using Gson. Enum class that I'm sending: enum class TaskState { NOT_ASSIGNED, IN_PROGRE...
I am learning the use of Retrofit2 to make REST Api calls from Android app. I have an end point which accepts two parts as given below: @Multipart ...
I'm trying to upload an image using Multipart from Flutter Retrofit using this code @POST("apiUrl/upload/files") @MultiPart() Future> uploadFile( ...
I am trying to learn compose and retrofit and for that I am developing a very easy app, fetching jokes from a public API and showing them in a lazy li...
I am working on an android app which request Mars photos ans use it to display it on screen. To make an request.And trying to use A public Api object ...
I have a favorite way of doing network request on Android (using Retrofit). It looks like this: // NetworkApi.kt interface NetworkApi { @GET("users...
I'm working on an Registraion API which takes the JSON input as follow / request parameters: {"httpMethod":"POST", "firstname":"Ali", "lastname":"Pate...
Is there a way to remove a specific header after setting this kind of Interceptor : public class AuthInterceptor : Interceptor { override fun inte...
Using Retrofit, I just Call a GET Request from an endpoint successfully. It returns the proper response in the response.body(). In the Logcat, it is l...
I followed this to POST Data Using Retrofit2 I Used JSON POJO to Parse my POST and GET files So Here If Data inside the Records Is there I will get ...
I'm trying to get just string request but it's give error like this Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 path $ And my API o...
I'm trying to connect to https server on android using Retrofit. Here's my OkHttpClient @Provides public OkHttpClient provideContactClient(){ HttpL...
I have an image of postman like below. How can I do the same thing in Retrofit 2? I've declared the interface like this: @Multipart @POST("/api/Pharm...
I'm making POST request to my backend, but i'm getting a 400 only using retrofit. I dug more into the issue and realized since my POST body is a plain...
With the DefaultHttpClient() you could do HttpClient client = new DefaultHttpClient(); HttpGet request = new HttpGet(url_login.toURI()); HttpGet req...
I need to send next json via retrofit 2: { "Inspection": { "UUID": "name", "ModifiedTime": "2016-03-09T01:13", "CreatedTi...
I am trying to do a HTTP POST to server using Retrofit 2.0 MediaType MEDIA_TYPE_TEXT = MediaType.parse("text/plain"); MediaType MEDIA_TYPE_IMAGE = Me...
Im migrating from using Volley to Retrofit, I already have gson class that I used before for converting JSONObject reponse to a object that implements...
I am using Retrofit to make api calls in my android application. I have to submit a @Body of JSON @GET("api/") void getData(@Body UserPostRequestBody...
I want get RSS code from a URL with Retrofit and if I enter url staticly in the get annotation everything is OK but with dynamic url I get an error. ...
Is there a way to set a custom cookie on retrofit requests? Either by using the RequestInterceptor or any other means? ...
How do I undo the most recent local commits in Git?
How can I remove a specific item from an array in JavaScript?
How do I delete a Git branch locally and remotely?
How can I find all files containing a specific text (string) on Linux?
How to find all files containing specific text (string) on Linux?
How do I revert a Git repository to a previous commit?
How do I create an HTML button that acts like a link?
How do I check out a remote Git branch?