Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: https://wso2.org/jira/browse/DOCUMENTATION-7247

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>Production</Name>
        <ServerURL>https://localhost:9445/services/&lt;/ServerURL>
        <Username>admin</Username>
        <Password>admin</Password>
        <GatewayEndpoint>http://localhost:8282,https://localhost:8245&lt;/GatewayEndpoint>
    </Environment>   
    <Environment type="sandbox">
        <Name>Production and Sandbox<<Name>Sandbox</Name>
        <ServerURL>https://localhost:9448/services/&lt;/ServerURL>
        <Username>admin</Username>
        <Password>admin</Password>        
        <GatewayEndpoint>http://localhost:8285,https://localhost:8248&lt;/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:

Image Modified

Figure: API Gateways in different geographical regions