diff --git a/docs/api-guide/pagination.md b/docs/api-guide/pagination.md index 99612ef46..47be37f33 100644 --- a/docs/api-guide/pagination.md +++ b/docs/api-guide/pagination.md @@ -257,6 +257,10 @@ To have your custom pagination class be used by default, use the `DEFAULT_PAGINA API responses for list endpoints will now include a `Link` header, instead of including the pagination links as part of the body of the response, for example: +![Link Header][link-header] + +*A custom pagination style, using the 'Link' header'* + ## Pagination & schemas You can also make the pagination controls available to the schema autogeneration @@ -268,12 +272,6 @@ The method should return a list of `coreapi.Field` instances. --- -![Link Header][link-header] - -*A custom pagination style, using the 'Link' header'* - ---- - # HTML pagination controls By default using the pagination classes will cause HTML pagination controls to be displayed in the browsable API. There are two built-in display styles. The `PageNumberPagination` and `LimitOffsetPagination` classes display a list of page numbers with previous and next controls. The `CursorPagination` class displays a simpler style that only displays a previous and next control.