Retrofit 2 - Dynamic URL

The Solution to Retrofit 2 - Dynamic URL is


I think you are using it in wrong way. Here is an excerpt from the changelog:

New: @Url parameter annotation allows passing a complete URL for an endpoint.

So your interface should be like this:

public interface APIService {
    @GET
    Call<Users> getUsers(@Url String url);
}

~ Answered on 2015-09-14 07:44:39


Most Viewed Questions: