Add API endpoints with a parameter to select the environment
Keep backward compatibility for endpoints
Merge pull request #9 from gdott9/endpoints

Add API endpoints with a parameter to select the environment