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

Pagination support on APIs with lists #14

Open
Tracked by #44 ...
gjermundgaraba opened this issue Aug 16, 2022 · 0 comments
Open
Tracked by #44 ...

Pagination support on APIs with lists #14

gjermundgaraba opened this issue Aug 16, 2022 · 0 comments
Assignees

Comments

@gjermundgaraba
Copy link
Contributor

gjermundgaraba commented Aug 16, 2022

Every API is currently just returning everything right now.

For every API that returns an "unbound" list of items, we need to:

  1. Add pagination query params (similar to the ones used in the Cosmos SDK CLI client)
  2. Set some sensible defaults (e.g. max 100 or 50 items per page by default or something like that)
  • limit: pagination limit of all balances to query for (default 10)
  • offset: pagination offset of all balances to query for
  • page: pagination page of all balances to query for. This sets offset to a multiple of limit (default 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Planning
Development

No branches or pull requests

2 participants