Skip to content

WIP: Resource level pagination options#1048

Open
samf89 wants to merge 1 commit intocerebris:masterfrom
samf89:feature.resource-pagination-arguments
Open

WIP: Resource level pagination options#1048
samf89 wants to merge 1 commit intocerebris:masterfrom
samf89:feature.resource-pagination-arguments

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