[Architecture] Sandbox support in API Manager
prabath at wso2.com
Wed Mar 28 01:16:53 PDT 2012
On Wed, Mar 28, 2012 at 11:55 AM, Sumedha Rubasinghe <sumedha at wso2.com>wrote:
> On Tue, Mar 27, 2012 at 11:02 PM, Paul Fremantle <paul at wso2.com> wrote:
>> Are we doing anything to support a "sandbox" model for APIs in the API
>> I have a really simple approach that I think might work:
>> 1) When you publish an API you can specify two endpoints. The real
>> endpoint and the "sandbox" endpoint.
>> 2) Users who subscribe to the API get two keys - a "full" key and a
>> sandbox key.
>> 3) We automatically route requests to the right URL based on which key.
>> The result is that to change from sandbox to production all the user has
>> to do it switch keys.
> I guess there needs to be a change happening @ the Synapse API definition
> to support this as well.
> Right now it looks like following.
One way to do is - the API Handler can set a property based on the Key -
whether its a sandbox end point or not and based on that property we can
Thanks & regards,
> <api xmlns="http://ws.apache.org/ns/synapse" name="DelciousAPI"
> <resource methods="GET" url-mapping="/tags/get">
> <property name="REST_URL_POSTFIX" scope="axis2"
> <endpoint name="Delicious">
> <address uri="https://api.del.icio.us/v1/tags/get
> So we need to have a condition check b4 figuring out which URI to be used
> when calling send mediator.
>> Paul Fremantle
>> CTO and Co-Founder, WSO2
>> OASIS WS-RX TC Co-chair, VP, Apache Synapse
>> UK: +44 207 096 0336
>> US: +1 646 595 7614
>> blog: http://pzf.fremantle.org
>> paul at wso2.com
>> wso2.com Lean Enterprise Middleware
>> Disclaimer: This communication may contain privileged or other
>> confidential information and is intended exclusively for the addressee/s.
>> If you are not the intended recipient/s, or believe that you may have
>> received this communication in error, please reply to the sender indicating
>> that fact and delete the copy you received and in addition, you should not
>> print, copy, retransmit, disseminate, or otherwise use the information
>> contained in this communication. Internet communications cannot be
>> guaranteed to be timely, secure, error or virus-free. The sender does not
>> accept liability for any errors or omissions.
>> Architecture mailing list
>> Architecture at wso2.org
> +94 773017743
> Architecture mailing list
> Architecture at wso2.org
Thanks & Regards,
Mobile : +94 71 809 6732
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Architecture