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.
Use-Case Description
Need to determine a standard way to do pagination that fits most use-cases. For example:
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
andlimit
) might be better for recent tracks.