This method is similar to the link header approach, except that the URL for the next page is included in the response body, rather than the header.
Option | Summary |
---|---|
Suppose we set the following options:
Option | Value |
---|---|
...and we send a request to get the first page of data:
The response will include the first page of data, together with a URL that should be used to get the next page of results. For example:
Notice the links.next
section at the end of this response, which includes our next page URL. So, our request for the next page of results would be:
Pagination continues until the next page URL is no longer included in the payload.
Next page field
Enter the location of the next page URL within the payload.
Next page field
links.next