-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Pagination support by headers #611
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
Comments
Supporting range headers as an option out-of-the-box seems like a good idea, yes. It could become the default at some point in the future, but I don't think that'd happen straight away - I'm not sure there's enough consensus around pagination styles in APIs to merit that just yet. A good place to start might be to ensure that when |
The Dojo JavaScript toolkit uses a similar approach in its
For Dojo, the client requests a subset of resources using a The client expects the response to indicate which records were returned, and how many are available, using a I calculate this total by executing See http://dojotoolkit.org/reference-guide/1.9/dojo/store/JsonRest.html#paging for the full details if interested. |
Superseeded by #1169 |
I dislike that the output of my API changes when I enable pagination. HTTP provides Range and Accept-Ranges headers for this, as documented on https://restful-api-design.readthedocs.org/en/latest/methods.html#ranges-pagination. I'm willing to provide some patches to change this behaviour, but that would mean an API change for users. Before I start I would like some opinion about this.
The text was updated successfully, but these errors were encountered: