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

Pagination is not part of the JSON:API specification #56

Merged
merged 1 commit into from
Jul 8, 2021

Conversation

bbrala
Copy link
Contributor

@bbrala bbrala commented Jul 8, 2021

The JSON:API specification does not specify how pagination works. There is an example in the specification, but that is not part of the specification. See the quote below:

Note: JSON:API is agnostic about the pagination strategy used by a server. Effective pagination strategies include (but are not limited to): page-based, offset-based, and cursor-based. The page query parameter can be used as a basis for any of these strategies. For example, a page-based strategy might use query parameters such as page[number] and page[size], an offset-based strategy might use page[offset] and page[limit], while a cursor-based strategy might use page[cursor].

The JSON:API specification does not specify how pagination works. There is an example in the specification, but that is not part of the specification. See the qquote below:

```
Note: JSON:API is agnostic about the pagination strategy used by a server. Effective pagination strategies include (but are not limited to): page-based, offset-based, and cursor-based. The page query parameter can be used as a basis for any of these strategies. For example, a page-based strategy might use query parameters such as page[number] and page[size], an offset-based strategy might use page[offset] and page[limit], while a cursor-based strategy might use page[cursor].
```
@freekmurze freekmurze merged commit de9a558 into spatie:master Jul 8, 2021
@freekmurze
Copy link
Member

Thanks!

@bbrala
Copy link
Contributor Author

bbrala commented Jul 8, 2021

No worries, all in good faith. :)

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