Pagination

Pagination
lac31
 
Layer7 Live API Creator
 provides pagination at each level of nesting for nested resources. For example, you can retrieve the next batch of customers or the next batch of orders within a customer.
Override the API-Level Setting for Pagination
If you have configured pagination on large result sets that API Server returns, you can override the default page size on a per-GET request basis by adding the 
pagesize
 query parameter to your GET, for example:
/Customers?
pagesize
=10
For more information about how to control the chunk size on a per-request basis, see API Properties.
Obtain Further Results
You can obtain further results using the 
pagination
 object:
}, {
"@metadata" : {
"next_batch" : "http://localhost:8080/APICreator/rest/demo1/Customers?pagesize=10&offset=10&order="
}
}
]
Obtain Next Page of Results
You can obtain the next page of results, which include all subresources, using the 
next_batch
 URI value.
The 
offset
 parameter might not change as you might expect. Row event and security affect this value so that it might not move in increments on 
pagesize
.
For more information about this parameter, see URL Parameters.