Retrieve Query Parameter From REST URL

Hello Experts,

Could you please guide any graceful way to get the query parameters from the request string?

Suppose the query string is: key1=value1&key2=value2&key3=value3…

I just need to get the value for key2, and the order of the key/value pair is not defined.

Do we have any service if i just say getParameter(key) it’s going to produce the value if present else null.

Regards
Sasa

Can you provide more details about this sort of request, try to understand the underlying issues if any. May be there is another way of doing this.

Can you provide a bit more context? Are you exposing a service that accepts a number of parameters? If so, declare them as inputs of the service. The rest directive handler will parse the URL parameters for you and they will be available in the pipeline.

You are awasome Rob!!, Many thanks for your suggestion.

Regards
Sasa