Add API endpoints with a parameter to select the environment