synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Udayanga Wickramasinghe <udaya...@wso2.com>
Subject Re: API versioning for Synapse Resources...
Date Thu, 23 Feb 2012 08:38:07 GMT
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>
*
*

Mime
View raw message