Cloud Application Integration (On-Premises) : Administering CloudStreams : Creating Custom Cloud Connectors : Configuring Custom REST Cloud Connectors : Understanding REST Parameters : Parameter Types : QUERYSTRING_PARAM
QUERYSTRING_PARAM
QUERYSTRING_PARAM parameters are passed as the query component of a REST resource invocation request.
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
Notice 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:
<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 © 2015- 2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback