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

WIP: Resource level pagination options #1048

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

samf89
Copy link

@samf89 samf89 commented May 4, 2017

I've recently had the need to implement resource level pagination options. I've put in a WIP MR for this - not fully tested, and I suspect that the changes to request_parser will break something somewhere.

class MyResource < JSONAPI::Resource
  paginator :paged, default_page_size: 50, default_page_number: 3
end

Is this an idea that is worth pursuing?

@blindMoe
Copy link

blindMoe commented Nov 7, 2018

Just ran into this same situation. Is this something we can move forward with? If so, let me know if I can help.

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

Successfully merging this pull request may close these issues.

3 participants