synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Fremantle <pzf...@gmail.com>
Subject Re: API versioning for Synapse Resources...
Date Fri, 24 Feb 2012 15:24:54 GMT
Should we consider the same for proxies too?

Paul

On Thu, Feb 23, 2012 at 8:38 AM, Udayanga Wickramasinghe
<udayanga@wso2.com>wrote:

> Hi,
>
> On Wed, Feb 22, 2012 at 6:47 PM, Udayanga Wickramasinghe <
> udayanga@wso2.com> wrote:
>
>> Hi,
>> I think it would be great to have versioning capability for ESB API
>> resources..
>> For example following could be the draft schemas of API's that can be
>> deployed as resources of the same version...
>>
>>     <api name="AccountManagementAPI" *version*=*"1.0.0"* *version-type="url
>> | header | query-param | .." *context="/am">
>>         <resource uri-template="/account/{accountId}" methods="GET"
>> inSequence="..." outSequence="..."/>
>>         <resource uri-template="/account/{accountId}" methods="PUT"
>> inSequence="...." outSequence="..." />
>>         ...................
>>         ..............
>>         .....
>>     </api>
>>
>> We need to (optionally) include a *version-param* attribute as well
> (ie:- which can be used to extract the actual version)..Sorry i missed it
> earlier...Modified schema is the following..
>
> <api name="AccountManagementAPI" *version*=*"1.0.0"* *version-type="url |
> header | query-param | .." **version-param="regex | string"**  *context="/am">
>
> ...........
> ......
> </api>
>
> Regards,
> udayanga
>
> --
> *Udayanga Wickramasinghe*
> Software Engineer; WSO2 Inc.; http://wso2.com,
> *email: **udayanga@wso2.com* <udayangaw@wso2.com>* cell: +94 (77) 983-4365
> blog: **http://udayangawiki.blogspot.com*<http://udayangawiki.blogspot.com/>
> *
> twitter: **http://twitter.com/udayanga_wick*<http://twitter.com/udayanga_wick>
> *
> *
>



-- 
Paul Fremantle
Co-Founder and CTO, WSO2
Apache Synapse PMC Chair
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
paul@wso2.com

"Oxygenating the Web Service Platform", www.wso2.com

Mime
View raw message