759
Views
2
Comments
Solved
Steps for configuration of Base URL dynamically while consuming REST API
Question
Application Type
Reactive

Hi All,

I wanted to configure the Base URL dynamically while consuming REST API in our module. 

Are there any steps that I need to follow and set the Base URL (as per the environment)?

Thanks 

Prince

UserImage.jpg
Pankaj Jain
Solution

Hello Prince K,

If you want to have different base URL for each of the environment, you can change the effective URL in the service center of each environment.

Hope this helps.

Thanks

Pankaj 


2020-01-08 08-43-00
Rahul Kumar

Hi Prince K ,

Yes, You can do. As per above suggestion, In different environment of service center you can apply effective urls value as per environment.

or 

By using Callback action On Before Request. Please check documentation.

Keep base url value in site properties. You can  assign different value as per environment in service center 

Now Just you have to do customization.  Assign url site properties value in  request input parameter of On Before request action. 


Regards,

Rahul

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.