robospice

Retrofit: multiple query parameters in @GET command?

此生再无相见时 提交于 2019-11-28 16:58:00
问题 I am using Retrofit and Robospice to make API calls in my android application. All @POST methods work great, and so do @GET commands without any parameters in the URL, but I can't get any @GET calls to work with parameters on the end! For example, if my API path was "my/api/call/" and I wanted 2 parameters "param1" and "param2" in the URL, the get call would look like: http://www.example.com/my/api/call?param1=value1&param2=value2 so I have setup my @GET interface like so: @GET("/my/api/call