Is it possible to use multiple base url at runtime with Retrofit?

I have two base url. So, i made 2 Retrofit instance. But i’m just wondering it’s possible to use multiple base urls within a Retrofit instance without using @Url.

1 Like

Just use multiple Retrofit services. That’s precisely the case for it. Those even can use the same OkHttp client.

I’ve been thinking about multiple base urls in a Retrofit instance for a few days, i wasn’t able to find a good workaround :frowning: Some solutions that i found on Google looked complex and unnecessary.
Thank you!!!

Why you need workaround? just create multiple instances with different base url