Ranging
To accommodate further requirements, connections can now be ranged. In this case, the client is able to determine the range of items returned by specifying a take
parameter. Additionally, a skip
parameter may be specified. These parameters are used instead of 'page index' and 'page size' to reduce ambiguity. Ranging is only available if there is a URI template that contains these optional parameters:
Parameter |
Type |
Description |
---|---|---|
|
|
the number of items 'skipped' and not returned. If not present, no items are skipped. |
|
|
the maximum number of items returned. To improve server response time, the value is limited. If the value is too high, the request is denied with |
It must be noted that the presence of the take
parameter is required. If no take
parameter is specified, no ranging is used and chunking may be in effect. Chunking may or may not use the same skip
parameter in its URL, but this is beyond the scope of the client and altering the skip
parameter in this case is unsupported
.