Skip to content

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

@dshorthouse

Description

@dshorthouse

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions