Skip to content

Auto pagination for specific body fields #287

@lucaspopp0

Description

@lucaspopp0

Really enjoying using restish! Especially the auto pagination is very helpful.

However, some of our API endpoints don’t return a raw list. Instead, they return an object where one property contains the list, such as

{
    "count": 4,
    "items": [
        {}, {}, {}, {}
    ]
}

Thoughts on adding the ability to auto-paginate a specific body field?

For example:

restish my-api list-items --rsh-pagination-field items

Might try to open a PR for this too

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

    Issue actions