Using URL and GET Tunneling for Same Request

This example shows the same request made by a URL request and a GET Tunneling request.
casp1032
This example shows the same request made by a URL request and a GET Tunneling request.
URL Request
This example uses GET devices, in a simple URL request format, to retrieve attributes for all devices, throttling at 100.
Initial request
This request specifies the attributes to read:
http://localhost/spectrum/restful/devices?attr=0x1006e&attr=0x10000&attr=0x10032&attr=0x12de2&throttlesize=100
All matching devices are found and cached. The first 100 devices are returned, and, if there are more than 100, a link to get the next 100.
Subsequent request
Using the link from the initial request-response, the following request pulls the next set of results from the cache:
http://localhost/spectrum/restful/devices?id=0120a63a-e2d3-4175-9563-c17c90c783a7&start=100&throttlesize=100
GET Tunneling Request
This example uses GET devices, in embedded XML request format, to retrieve attributes for all devices, throttling at 100.
  SPEC--GET Tunneling_SCR  
The following portions of Request.xsd are of interest for this example. This request uses the 
model-request
 type. The type definition determines the parameters that can be specified, in this case, "target-models", "requested-attribute", and "throttlesize".
See the complete contents in <
$SPECROOT
>/RestfulExamples/src/xsd/Request.xsd.
<xs:complexType name="model-request"> <xs:sequence> <xs:element name="target-models" type="rs:target-models" minOccurs="1" maxOccurs="1" /> <xs:element name="requested-attribute" type="rs:requested-attribute" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> <xs:attribute name="throttlesize" type="xs:int" /> </xs:complexType> . . . <xs:complexType name="target-models"> <xs:choice> <xs:element name="model" type="rs:model" minOccurs="0" maxOccurs="unbounded" /> <xs:element name="models-search" type="rs:models-search" minOccurs="0" maxOccurs="1"/> </xs:choice> </xs:complexType> . . . <!-- Elements --> <xs:element name="alarm-request" type="rs:alarm-request" /> <xs:element name="model-request" type="rs:model-request" /> <xs:element name="subscription-request" type="rs:subscription-request" /> <xs:element name="update-models-request" type="rs:update-models-request" />