-
-
Notifications
You must be signed in to change notification settings - Fork 715
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
Add Link: pagination HTTP headers #1014
Comments
The GitHub API has these:
WordPress API: https://css-tricks.com/wp-json/wp/v2/posts
It also has these:
|
This should be documented on https://docs.datasette.io/en/stable/json_api.html |
I'm just going to implement the 'next' one. |
I won't offer a total-number header. That's expensive to calculate - no need to calculate it unless it's explicitly asked for. |
First example page to add this to: |
Demo using paginate-json:
New documentation: https://docs.datasette.io/en/latest/json_api.html#pagination |
Spun off from #782. These can go on all of the JSON endpoints that support pagination.
The text was updated successfully, but these errors were encountered: