title: Retrofit 2 - Dynamic URL
body: <p>With Retrofit 2, you can set a full URL in the annotation of a service method like : </p>
  
  <pre><code>public interface APIService {
    @GET("http://api.mysite.com/user/list")
    Call&lt;Users&gt; getUsers();
  }
  </code></pre>
  
  <p>However, in my app, the URL of my webservices are not known at compile time, the app retrieves them in a downloaded file so i'm wondering how i can use Retrofit 2 with full dynamic URL.</p>
  
  <p>I tried to set a full path like : </p>
  
  <pre><code>public interface APIService {
    @GET("{fullUrl}")
    Call&lt;Users&gt; getUsers(@Path("fullUrl") fullUrl);
  }
  
  new Retrofit.Builder()
    .baseUrl("http://api.mysite.com/")
    .build()
    .create(APIService.class)
    .getUsers("http://api.mysite.com/user/list"); // this url should be dynamic
    .execute();
  </code></pre>
  
  <p>But here, Retrofit doesn't see that the path is actually a full URL and is trying to download <code>http://api.mysite.com/http%3A%2F%2Fapi.mysite.com%2Fuser%2Flist</code></p>
  
  <p>Any hint of how I could use Retrofit with such dynamic url ?</p>
  
  <p>Thank you</p>