[prev in list] [next in list] [prev in thread] [next in thread] 

List:       esb-java-dev
Subject:    Re: [Dev] RestConstant.SYNAPSE_REST_API_VERSION
From:       Gimantha Bandara <gimantha () wso2 ! com>
Date:       2018-06-26 7:18:19
Message-ID: CADs_ZpDkhZi6vVJyk1ofXe1CfW=ODAydQ-OxRwM+nCZrzMwiFA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Thanks Rukshan. Will check it out

On Tue, Jun 26, 2018 at 4:49 PM Rukshan Premathunga <rukshan@wso2.com>
wrote:

> 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 <gimantha@wso2.com>
> 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
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Rukshan Chathuranga.
> Software Engineer.
> WSO2, Inc.
> +94711822074
>

[Attachment #5 (text/html)]

<div dir="ltr">Thanks Rukshan. Will check it out</div><br><div \
class="gmail_quote"><div dir="ltr">On Tue, Jun 26, 2018 at 4:49 PM Rukshan \
Premathunga &lt;<a href="mailto:rukshan@wso2.com">rukshan@wso2.com</a>&gt; \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi \
Gimantha,<div><br></div><div>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.</div><div><br></div><div>Please check this[1]</div><div><br></div><div>[1]  \
<a href="https://stackoverflow.com/questions/27295902/how-to-read-query-param-in-wso2-esb-4-8-or-above" \
target="_blank">https://stackoverflow.com/questions/27295902/how-to-read-query-param-in-wso2-esb-4-8-or-above</a></div><div><br></div><div>Thanks \
and Regards</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, \
Jun 26, 2018 at 7:24 AM, Gimantha Bandara <span dir="ltr">&lt;<a \
href="mailto:gimantha@wso2.com" target="_blank">gimantha@wso2.com</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi,</div>Can we use this property \
(get-property(&#39;SYNAPSE_REST_API_VERSION  &#39;)) 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?  </div> \
<br>_______________________________________________<br> Dev mailing list<br>
<a href="mailto:Dev@wso2.org" target="_blank">Dev@wso2.org</a><br>
<a href="http://wso2.org/cgi-bin/mailman/listinfo/dev" rel="noreferrer" \
target="_blank">http://wso2.org/cgi-bin/mailman/listinfo/dev</a><br> \
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div \
class="m_170008053804411860gmail_signature" data-smartmail="gmail_signature"><div \
dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div \
dir="ltr"><div><div>Rukshan Chathuranga.<br></div>Software Engineer.<br></div>WSO2, \
Inc.<br></div></div><div \
dir="ltr">+94711822074</div></div></div></div></div></div></div> </div>
</blockquote></div>



_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic