Architecture - Best Practices - To define Base URL of REST API as per environment (Dev/UAT/Prod)


What is the best way to define Base URL of REST API? 

REST API URL contains machine name so it would be different from environment to environment. I have many such Integration objects. So i cannot hard code that machine name in all 50 REST API Integration objects. Also i can't use one constant which will cater to all REST API Integration object.

Known solution: Create base constant that is environment specific (Tick - Different environments need to have different values for this constant). Create other 50 constants for fixed REST URL content. Finally in REST integration append base constant with other constants while using.

Parents Reply Children

 Discussion posts and replies are publicly visible