Every response has a “Link” HTTP header element that contains URLs to retrieve the next and the previous page of data. The format of that data: {uri_prev}; rel=“prev”, {uri_next}; rel=“next”
Value of "rel" | Description |
---|---|
next | Corresponds to a URI to retrieve the next page of data |
prev | Corresponds to a URI to retrieve the previous page of data |
first | Corresponds to a URI to retrieve the first page of data |
last | Corresponds to a URI to retrieve the last page of data |
Example:
https://datasync-api.gg4l.com/datahub/services/ims/oneroster/v1p1/events?limit=100&offset=101; rel="next", https://datasync-api.gg4l.com/datahub/services/ims/oneroster/v1p1/events?limit=100&offset=0; rel="prev", https://datasync-api.gg4l.com/datahub/services/ims/oneroster/v1p1/events?limit=100&offset=0; rel="first", https://datasync-api.gg4l.com/datahub/services/ims/oneroster/v1p1/events?limit=100&offset=8900; rel="last"