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

Method for pagination on related resource? #46

Closed
GregPeden opened this issue Feb 27, 2017 · 2 comments
Closed

Method for pagination on related resource? #46

GregPeden opened this issue Feb 27, 2017 · 2 comments

Comments

@GregPeden
Copy link
Contributor

GregPeden commented Feb 27, 2017

Per the subject, I can't figure how to do this. I would like to force pagination, however even user-requested pagination is not respected. Am I mistaken?

For example, given this resource...
http://demo.dev/api/v1/countries

... and this relationship URL...
http://demo.dev/api/v1/countries/CA/cities?page%5Bnumber%5D=1&page%5Bsize%5D=15

...pagination is not performed. I additionally wish to force pagination but see no method.

Might I suggest that pagination be determined on the Schema instead of the Search class? Then the pagination rules for the given asset are applied on relationships, including when the top-level ID data is included within 'relationships'.

Similarly, a global setting for pagination rules would be swell.

@lindyhopchris
Copy link
Member

Pagination of related resources is not currently supported but is something we're planning on supporting in a future version. It requires some refactoring of how Search classes work. There's a detailed list of things that need to be supported here:

#35

@GregPeden
Copy link
Contributor Author

Okay, thanks.

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

No branches or pull requests

2 participants