Re: [Dev] [DEV] How to get a query parameter in a REst request?

2017-02-19 Thread Ishara Cooray
Thanks Abimaran and Shani. I got this working by using a resource template as Abimaran said and . expression="$url:clientId" Thanks & Regards, Ishara Cooray Senior Software Engineer Mobile : +9477 262 9512 WSO2, Inc. | http://wso2.com/ Lean . Enterprise . Middleware On Thu, Feb 16, 2017 at 6:12

Re: [Dev] [DEV] How to get a query parameter in a REst request?

2017-02-16 Thread Shani Ranasinghe
Hi Ishara, I was able to get it working as follows. http://ws.apache.org/ns/synapse; name="admin--WB:v1--In"> On Thu, Feb 16, 2017 at 5:42 PM, Abimaran Kugathasan wrote: > Hi Ishara, > > Have you tried using get-property('query.param.clientId')? > > You

Re: [Dev] [DEV] How to get a query parameter in a REst request?

2017-02-16 Thread Abimaran Kugathasan
Hi Ishara, Have you tried using get-property('query.param.clientId')? You need to define Endpoint like https://localhost:9444//wb/1/countries/us?clientId={query.param.clientId} On Thu, Feb 16, 2017 at 5:19 PM, Ishara Cooray wrote: > In APIM 2.1.0 i am trying to read a

[Dev] [DEV] How to get a query parameter in a REst request?

2017-02-16 Thread Ishara Cooray
In APIM 2.1.0 i am trying to read a request query parameter . i have this request "GET /wb/1/countries/us?clientId=isharac in an In sequence i read query parameter as below. But when i log it 'cid' is null am i doing anything wrong here? how can i read the query param in a seq? This is the