How to get my query string params

Hello,

I created my first service rest with the method get, it is a service that will call another service using the parameters passed in the url.
how can I get my param from the following example:

http://site-pp/use/Catalogue?code=10&zipcode=02160&alfa=false&country=us

I would like to recover the queryString or the following params : code=10&zipcode=02160&alfa=false&country=us

Thanks and regards

Hi Yassine Dayski,

You can achieve this by having code,zipcode,alfa,country as input parameter for restservice which you have created and then mapping them to the another service which is called inside.

find the atachment for visual example

Thanks,
Manoj

Hello Manoj,

Thanks for yout response.
But the concern is the the parameters are not fixed and they change from one request to another.

exp1 :
http://site-pp/use/Catalogue?code=10&zipcode=02160&alfa=false&country=us

exp2:
http://site-pp/use/Catalogue?code=10&city=blabla&flag=false&street=test

Regards,

I that case you can use pub.flow:getTransportInfo service to read request details like query parameter,requestUrl, method etc and then reuse the pipeline.

Thanks,
Manoj

I already tried to use it, but the there is no detail about the params inside (you can see my attachment)
Capture.PNG

Hello,

Can you try calling the service from any rest client. add a debug service to trace query data in IS server log

Please find the attachement to refer mapping which I have used

Thanks,
Manoj

Hello Manoj,

Thank you for your help.
I had to call service from a rest client and I can recovery my query string.

Regards.