I am using the API connector and I have two different REST endpoints for dev and production. The URI is something like service/dev/licensing and service/v1/licensing. I know that there is a setting called Development key value which I use to specify a different key for dev and prod but I can’t find a way to have the path switch automatically between dev and prod (v1). As you can see in the screenshot below, I have different keys for dev and prod. I actually have two issues.
-
First one is that I have created a “Share Parameter for all calls” and called it apiVersion and set the value to dev. However, when I add the parameter to the path in the “Get all licenses” API call, its creates a new “URL Parameters” for the call.
-
When I want to “deploy to live” I have to run through all the API Calls and change the apiVersion value to v1 and swap the keys. Test it on production and then deploy and revert it back to dev to continue working.
I am sure there must be an easier way
