With WSO2 API Manager, you can maintain a production and a sandbox endpoint for a given API. The production endpoint is the actual location of the API, whereas the sandbox endpoint points to its testing/pre-production environment.
...
Code Block |
---|
<Environments> <Environment type="production"> <Name>Production and Sandbox</Name> <ServerURL>https://localhost:9445/services/</ServerURL> <Username>admin</Username> <Password>admin</Password> <GatewayEndpoint>http://localhost:8282,https://localhost:8245</GatewayEndpoint> </Environment> <Environment type="sandbox"> <Name>Production and Sandbox</Name> <ServerURL>https://localhost:9448/services/</ServerURL> <Username>admin</Username> <Password>admin</Password> <GatewayEndpoint>http://localhost:8285,https://localhost:8248</GatewayEndpoint> </Environment> </Environments> |
...
- Production: A production type Gateway
- Sandbox: A sandbox type Gateway
- Hybrid: The Gateway handles both types of tokens
If you work with Gateways in different geographical locations, configuring multiple environments using the <APIGateway> element in the <APIM_HOME>/repository/conf/api-manager.xml file is recommended. The diagram below depicts a sample setup:
Figure: API Gateways in different geographical regions