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.
More Related Contents:
- Comparison of Android networking libraries: OkHTTP, Retrofit, and Volley [closed]
- POST Multipart Form Data using Retrofit 2.0 including image
- How to handle Dynamic JSON in Retrofit?
- Retrofit 2 – Dynamic URL
- Retrofit 2: Get JSON from Response body
- Parse Dynamic Key Json String using Retrofit
- javax.net.ssl.SSLException: Read error: ssl=0x9524b800: I/O error during system call, Connection reset by peer
- How to post array in retrofit android
- How to log request and response body with Retrofit-Android?
- Send Post Request with params using Retrofit
- CertPathValidatorException : Trust anchor for certificate path not found – Retrofit Android
- Retrofit2.0 gets MalformedJsonException while the json seems correct?
- Android Retrofit – onProgressUpdate for showing Progress Notification
- Unable to create converter for my class in Android Retrofit library
- When should one use RxJava Observable and when simple Callback on Android?
- How can I return String or JSONObject from asynchronous callback using Retrofit?
- Retrofit2: Modifying request body in OkHttp Interceptor
- How to get response as String using retrofit without using GSON or any other library in android [duplicate]
- Retrofit 2: Catch connection timeout exception
- Getting Header from Response (Retrofit / OkHttp Client)
- How can Retrofit 2.0 parse nested JSON object?
- Single Observable with Multiple Subscribers
- Send file to server via retrofit2 as object
- How can I handle empty response body with Retrofit 2?
- Retrofit API to retrieve a png image
- retrofit with rxjava handling network exceptions globally
- how to run java and xml code (fetched from api) into another fragment
- How should I handle “No internet connection” with Retrofit on Android
- CLEARTEXT communication not supported on Retrofit
- AWS S3 Rest API with Android Retrofit V2 library, uploaded image is damaged