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 Fri, 24 Feb 2012 17:10:37 GMT
On Fri, Feb 24, 2012 at 8:54 PM, Paul Fremantle <pzfreo@gmail.com> wrote:

> Should we consider the same for proxies too?
>
> +1 ..i think it would be very useful for both API's and proxies..but let's
start with for API resources...
i guess to implement a versioning strategy for proxies we might need to do
changes in axis2 as well..

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
>



-- 
*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