You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This pagination style accepts a single page number in the request query parameters. The response uses an HTTP header called Link to provide the URLs for the next, previous, first, and last pages. If you are using Python's Requests library to make the request, this header is automatically parsed for you as described here.
On GenericAPIView subclasses you may also set the pagination_class attribute to select LinkHeaderPagination on a per-view basis.
Other pagination classes that are available are:
LinkHeaderCursorPagination: This is similar to the normal CursorPagination class but using the Link header to return only the next and/or prev links. The first and last links are unavailable.
LinkHeaderLinkResponseCursorPagination: This is similar to
LinkHeaderCursorPagination, but in addition to the next and/or prev URL's being in the Link header, the content of the response body is updated to include them as well. The body will be an object with the keys next (the next page's URL or None), previous (the previous page's URL or None), and results (the original content of the body).