Yes, you can invoke different backend services by publishing an API in different environments while specifying environment variables and backend parameters.
For details, see (Optional) Configuring the Environment and Environment Variables.