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, 22 Mar 2012 15:05:44 GMT
Hi,
i forgot to update this thread about the progress made on $subject. I have
implemented versioning support for synapse API resources and changes are
now available on the trunk..Following is how two versioned resources would
look like..

<api  name="DelciousAPI" version="1.0.0" version-type="url"
context="/deli">
        <resource methods="GET" url-mapping="/tags/get">
            <inSequence>
       ............
       .......

<api  name="DelciousAPI" version="1.0.1" version-type="url"
context="/deli">
        <resource methods="GET" url-mapping="/tags/get">
            <inSequence>
       ............
       .......



Currently only url based version dispatch is available and i am in the
process of implementing other types of support for version (ie:- as
attributed by version-type="...") as  well..
However i did retain old API dispatching ability (without versions) for
backward compatibility..

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