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

Improved pagination support #4

Open
chriskapp opened this issue May 13, 2023 · 0 comments
Open

Improved pagination support #4

chriskapp opened this issue May 13, 2023 · 0 comments

Comments

@chriskapp
Copy link
Member

Many APIs have some kind of paged collection response where the initial request only returns a subset of the complete collection i.e.

{
    "totalEntries": 1024,
    "itemsPerPage": 16,
    "startIndex": 32,
    "entries": [{ ... }]
}

A user often needs to go through this pagination to get more entries. It would be great if our client SDK would provide support for such a pagination by providing an iterator which automatically goes through each page so that the user does not need to do this manually. The spec needs to contain the information that the response is a collection and how the query parameters are named to go through each page.

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