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

feat: implement auto-pagination for list/paginated endpoints #179

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

woyuen
Copy link
Member

@woyuen woyuen commented Sep 16, 2020

Via two ways:

  • async iterator
  • autoPagingToArray function

Additional change: explicitly pass the maximum number
of results per page for list endpoints that supports pagination,
when the parameter nbResultsPerPage is absent.

Via two ways:
- async iterator
- `autoPagingToArray` function
If `nbResultsPerPage` isn’t passed for list endpoints,
send the request with the maximum allowed number.

Note: the parameter won’t be sent for non-paginated endpoints.
@woyuen woyuen requested a review from abruere September 16, 2020 10:52
@woyuen woyuen self-assigned this Sep 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants