How to add post query parameter string with double quote in url in retrofit?

Viewed 1598

I am accessing an api .which looks like

http://XXX.XX.XXX.XXX/api/Gallery/getgallerylist?userid="17" .

I have tried the following annotation.

 @POST("Gallery/getgallerylist")
    Call<GalleryImagesResponse> getGalleryImages(@Query("userid") String userid);

But the url it requests is http://XXX.XX.XXX.XXX/api/Gallery/getgallerylist?userid=17

So that how can I add double quote to userid's value like userid="17".

2 Answers
Related