Re: [Dev] Use of URL template in ESB with a wildcard for query parameters

2014-03-20 Thread Sanjeewa Malalgoda
On Thu, Mar 20, 2014 at 12:52 PM, Pushpalanka Jayawardhana la...@wso2.comwrote: Hi, I tried this with ESB sample 800 in ESB 4.6.0. Modified the API as follows, api xmlns=http://ws.apache.org/ns/synapse; name=StockQuoteAPI context=/stockquote resource methods=GET

Re: [Dev] Use of URL template in ESB with a wildcard for query parameters

2014-03-20 Thread Pushpalanka Jayawardhana
Hi, Pushpalanka. -- Pushpalanka Jayawardhana, B.Sc.(Hons). Software Engineer, WSO2 Lanka (pvt) Ltd; wso2.com/ Mobile: +94779716248 Blog: pushpalankajaya.blogspot.com/ | LinkedIn: lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka On Thu, Mar 20, 2014 at 1:00 AM, Sanjeewa Malalgoda

Re: [Dev] Use of URL template in ESB with a wildcard for query parameters

2014-03-20 Thread Pushpalanka Jayawardhana
Pushpalanka. -- Pushpalanka Jayawardhana, B.Sc.(Hons). Software Engineer, WSO2 Lanka (pvt) Ltd; wso2.com/ Mobile: +94779716248 Blog: pushpalankajaya.blogspot.com/ | LinkedIn: lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka On Thu, Mar 20, 2014 at 10:23 AM, Pushpalanka Jayawardhana

Re: [Dev] Use of URL template in ESB with a wildcard for query parameters

2014-03-20 Thread Sanjeewa Malalgoda
I was under the impression that you are using latest uri-template version (1.6.3 or above). Actually * support and query parameter support was not there in in 1.6.2 and we introduced it later. Referring this jira[1] Thanks, sanjeewa. [1]https://wso2.org/jira/browse/APIMANAGER-903 On Fri, Mar

[Dev] Use of URL template in ESB with a wildcard for query parameters

2014-03-19 Thread Pushpalanka Jayawardhana
Hi, We need to read in some parameters from the URL path as well as some optional query parameters. (in ESB 4.6.0) Have tried few combinations of URL-mapping and URI- templates. Is it possible to use something similar to resource methods=GET url-mapping=/case/{grade}/{studentId}?* This did not

Re: [Dev] Use of URL template in ESB with a wildcard for query parameters

2014-03-19 Thread Sanjeewa Malalgoda
First for this type of definitions you need to use uri-template instead of url-mapping. With uri-templates only you will be able to define resource variables as you mentioned. See following examples. URITemplate /sanjeewa/{name,id}/* matches /sanjeewa/user,190/test matches

Re: [Dev] Use of URL template in ESB with a wildcard for query parameters

2014-03-19 Thread Pushpalanka Jayawardhana
Thanks, Pushpalanka. -- Pushpalanka Jayawardhana, B.Sc.(Hons). Software Engineer, WSO2 Lanka (pvt) Ltd; wso2.com/ Mobile: +94779716248 Blog: pushpalankajaya.blogspot.com/ | LinkedIn: lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka On Wed, Mar 19, 2014 at 1:44 AM, Sanjeewa Malalgoda

Re: [Dev] Use of URL template in ESB with a wildcard for query parameters

2014-03-19 Thread Sanjeewa Malalgoda
On Wed, Mar 19, 2014 at 2:56 PM, Pushpalanka Jayawardhana la...@wso2.comwrote: Thanks, Pushpalanka. -- Pushpalanka Jayawardhana, B.Sc.(Hons). Software Engineer, WSO2 Lanka (pvt) Ltd; wso2.com/ Mobile: +94779716248 Blog: pushpalankajaya.blogspot.com/ | LinkedIn:

Re: [Dev] Use of URL template in ESB with a wildcard for query parameters

2014-03-19 Thread Pushpalanka Jayawardhana
Thanks, Pushpalanka. -- Pushpalanka Jayawardhana, B.Sc.(Hons). Software Engineer, WSO2 Lanka (pvt) Ltd; wso2.com/ Mobile: +94779716248 Blog: pushpalankajaya.blogspot.com/ | LinkedIn: lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka On Wed, Mar 19, 2014 at 2:50 AM, Sanjeewa Malalgoda

Re: [Dev] Use of URL template in ESB with a wildcard for query parameters

2014-03-19 Thread Sanjeewa Malalgoda
On Thu, Mar 20, 2014 at 3:58 AM, Pushpalanka Jayawardhana la...@wso2.comwrote: Thanks, Pushpalanka. -- Pushpalanka Jayawardhana, B.Sc.(Hons). Software Engineer, WSO2 Lanka (pvt) Ltd; wso2.com/ Mobile: +94779716248 Blog: pushpalankajaya.blogspot.com/ | LinkedIn: