Join Slack
Powered by
<How to send empty string on query parameter retro...
# stackoverflow
u
user
07/16/2022, 5:01 PM
How to send empty string on query parameter retrofit kotlin
I have an API URL like
https://api.github.com/search/users?q=""
, so I try to hit it with the postman, and it is fine.
https://i.stack.imgur.com/jTYbS.png
▾
And then I want to implement that request using retrofit. So I create an Query Parameter on retrofit, like this, @GET("search/users") @Headers("Authorization: token ${BuildConfig.TOKEN}") fun searchUser(...
10
Views
Open in Slack
Previous
Next