-1

I want to change baseurl with spinner by letting the user choose. Because the api I use is also the baseurls are allocated to different servers.

Sample :

euw1.site.com

na1.site.com

tr1.site.com

I want to make this server selection to the user with the spinner. App Sample

As I am new to programming, I could not succeed no matter how hard I tried. Thank you to everyone who has already helped.

Ole Pannier
  • 3,208
  • 9
  • 22
  • 33

1 Answers1

0

Retrofit - Change BaseUrl , change request get, post .. request url

@GET suspend fun getAPI(@Url url: String?): Response<Any> // url is dynamic
utku glsvn
  • 42
  • 9