flask-rest-jsonapi
stable
  • Installation
  • Resource
  • Data layer
  • Sorting
  • Fields restriction
  • Filtering
  • Pagination
  • Routing
  • Tutorial
flask-rest-jsonapi
  • Docs »
  • Pagination
  • Edit on GitHub

PaginationΒΆ

You can control the pagination with the querystring url parameter “page”

Example (not urlencoded for readability):

GET /topics/1/posts?page[size]=2 HTTP/1.1
Content-Type: application/vnd.api+json
Accept: application/vnd.api+json

GET /topics/1/posts?page[size]=2&page[number]=3 HTTP/1.1
Content-Type: application/vnd.api+json
Accept: application/vnd.api+json

If you want to disable pagination just set page size to 0

Example (not urlencoded for readability):

GET /topics/1/posts?page[size]=0 HTTP/1.1
Content-Type: application/vnd.api+json
Accept: application/vnd.api+json
Next Previous

© Copyright 2016, miLibris. Revision 5db777ef.

Built with Sphinx using a theme provided by Read the Docs.