REST Services Pagination

When returning large collections from a REST service, it is important to ensure that an individual response is not excessive. The standard way of limiting the size of a response to a subset of the large collection is pagination, where not only some of the collection is returned but also information about how to get the next bit of the collection in a future REST request.

Jade supports the paginating of responses when using the JadeRestService class to provide web services, as well as providing a mechanism to easily get the next page when using the JadeRestClient class to consume web services that employ common pagination strategies.

Jade provides the following interface and class for envelope‑based paginating, as well as entities in existing REST service classes. (For details, see Volume 1 of the Encyclopaedia of Classes.)

The two main styles of pagination, both of which are supported in Jade both from server‑side and client‑side web services, are as follows.

For more details, see "Client-Side Usage Examples" and "Server-Side Usage Example" in the following subsections.

2022.0.01 and higher