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 format #14

Open
aramperes opened this issue Jan 27, 2021 · 0 comments
Open

Pagination format #14

aramperes opened this issue Jan 27, 2021 · 0 comments

Comments

@aramperes
Copy link
Member

Use-Case Description

Need to determine a standard way to do pagination that fits most use-cases. For example:

  • getting recent tracks (could be page by page, or an offset)
  • top songs/albums/artists (page by page)
  • getting friends (page by page)

Semantics

I'm thinking page numbers is the best way forward, with standard pagination fields in responses (total_pages, has_next, has_previous, total_results, page_size, etc.). Offset-based pagination (offset and limit) might be better for recent tracks.

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

No branches or pull requests

1 participant