Skip to content

sunscrapers/hedju

Repository files navigation

Hedju - Header Pagination for Django REST Framework

Documentation Status

Replacement for Django REST Framework's pagination classes implementing Link header as defined in RFC5988 with optional enveloping.

Inspired by `this paragraph from excellent article<https://www.vinaysahni.com/best-practices-for-a-pragmatic-restful-api#pagination>`_ by Vinay Sahni

Note

This is pre-alpha code. Use at your own discretion.

Features

  • Provides first, prev, next and last links via headers.
  • Optional enveloping for clients without header support - returns structure compatible with original class but with extra first and last links.

Credits

Developed by SUNSCRAPERS with passion & patience.

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

About

Replacement for DRF's pagination classes

Resources

License

Stars

Watchers

Forks

Packages

No packages published