How to give Dynamic BASE URL in REST API Mobile APP

How to give Dynamic BASE URL in REST API Mobile APP

  

Hi,

I want to switch the Base URl based on some settings/selection on my Screen.

So that whenever in app any of API get called it should be get called based on Respective Base URL.

Thanks

Solution

Hi,

I think you can achieve that by creating an OnBeforeRequest event,

 and it it change the CustomizedRequest.baseURL with the value from your screen.

Regards,

Daniel

Solution

Daniël Kuhlmann wrote:

Hi,

I think you can achieve that by creating an OnBeforeRequest event,

 and it it change the CustomizedRequest.baseURL with the value from your screen.

Regards,

Daniel

Thanks Daniel,

I found the desire in OnBeforeRequest.