Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for offset + limit pagination #311

Open
nicbou opened this issue May 18, 2017 · 0 comments
Open

Support for offset + limit pagination #311

nicbou opened this issue May 18, 2017 · 0 comments

Comments

@nicbou
Copy link

nicbou commented May 18, 2017

A common pagination style for REST APIs is offset + limit paginations. Instead of doing "page 3 at 5 items per page", you say "5 items after item #15". It's a slightly more flexible approach.

Looking at the code in pagination.py, I see that in the end, we turn the page number into an offset anyway, so wouldn't it be a better idea to allow an offset to be specified directly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant