Retrofit – Change BaseUrl

Lucky for you Retrofit have a simple solution for that:

public interface UserManager {  
    @GET
    public Call<ResponseBody> userName(@Url String url);
}

The url String should specify the full Url you wish to use.

Leave a Comment