webMethods CloudStreams 10.3 | webMethods CloudStreams Documentation 10.3 | Cloud Connections, Services, and Connector Listeners | Understanding REST Parameters | Parameter Types | QUERYSTRING_PARAM
 
QUERYSTRING_PARAM
QUERYSTRING_PARAM parameters are passed as the query component of a REST resource invocation request.
Example
The following example demonstrates a typical HTTP GET request with parameters that form a query string of the resource URI.
GET /status?key1=value1&key2=value2 HTTP/1.1
Host: www.softwareag.com
Content-Length: 0
Note that the parameters are added to the path after a "?", and specified as ampersand ( & ) separated list of key-value pairs, with the corresponding Content-Length set accordingly. The key & values passed as parameters are URL encoded by CloudStreams.
A sample resource definition with QUERYSTRING_PARAM parameter is as follows:
<resource name="GetStatus" method="GET" path="/status">
<parameters>
<parameter name="key1" isRequired="true" style="QUERYSTRING_PARAM"/>
<parameter name="key2" isRequired="false" style="QUERYSTRING_PARAM"/>
</parameters>
</resource>

Copyright © 2013-2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.