Hi Gimantha, yes we have used it to get the version of API. So you defined the version in uri-template and want to get the value of it in handler level? If it is the case, i think you have to get it as a property.
Please check this[1] [1] https://stackoverflow.com/questions/27295902/how-to-read-query-param-in-wso2-esb-4-8-or-above Thanks and Regards On Tue, Jun 26, 2018 at 7:24 AM, Gimantha Bandara <[email protected]> wrote: > Hi, > Can we use this property (get-property('SYNAPSE_REST_API_VERSION ')) in > ESB 4.9.0 to get the version of an API? I have defined a uri-templete ( > {version} ) with the version placeholder. But it is not picking up the > version and I cannot access the version via > RestConstant.SYNAPSE_REST_API_VERSION. > Or this is only used in APIM? > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Rukshan Chathuranga. Software Engineer. WSO2, Inc. +94711822074
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
