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
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.
Pankaj
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