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

NestedParamPaginator for endpoint that uses page[offset] & page[limit] #401

Open
dshorthouse opened this issue Jun 15, 2022 · 0 comments
Open

Comments

@dshorthouse
Copy link

Help request here.

I am using an endpoint that uses page[offset] and page[limit] & so have made use of:

JsonApiClient::Paginating::NestedParamPaginator.page_param = "offset"
JsonApiClient::Paginating::NestedParamPaginator.per_page_param = "limit"

But, this isn't correct because the endpoint expects an offset and not a page. How do I go about configuring this such that:

Model.page(X).per_page(Y)

...constructs the appropriate parameters when I send the model a page method?

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

No branches or pull requests

1 participant