Paging
In order to avoid sending massive payloads with large amounts of data over the network all at once, the results can be paged. This can be done in two days.
- /li>Client-driven paging:
- Clients can use $top and $Skip queries (and their combinations) to obtain partial results
- Clients can use odata.maxpagesize parameter in the Prefer header to control the paging, i.e. Prefer: odata.maxpagesize=3
- Server-driven paging:
- RASON.net includes limit of PageSize = 1000.
For 1.b and 2.a, a partial response will be received, along with the nextLink-URL for the next page.
{
"@odata.context": "https://rason.net/odata/$metadata#Result(Data())",
"value": [
{
"Name": "customers.result.transformation",
"Data": [
{
"_ID": 0,
"_Name": "Record 1",
"CustomerID": "c1",
"Country": "Germany",
"Age": 30.0
},
{
"_ID": 1,
"_Name": "Record 2",
"CustomerID": "c2",
"Country": "France",
"Age": 40.0
}
]
}
],
"@odata.nextLink": "https://rason.net/odata/result?$skip=1"
}
|