Skip to content

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

Open
@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?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @dshorthouse

        Issue actions

          NestedParamPaginator for endpoint that uses page[offset] & page[limit] · Issue #401 · JsonApiClient/json_api_client