3 ms·
Assume that I am building an interface that displays data I have retrieved from your API. Are you saying that your API would require my interface to mimic your
by 7Figures2Commas 13y ago
Assume that I am building an interface that displays data I have retrieved from your API.
Are you saying that your API would require my interface to mimic your pagination, as opposed to being able to retrieve data in such a way that I could paginate as I saw fit?
- bavidar 13y agoyou can paginate however you want. The default is the return 10. You can return an amount 1-100 and use the offset parameter to get the next X results.
- 7Figures2Commas 13y agoMaybe I'm missing something, but how can I display pagination of my own choosing if I can't calculate the total number of pages that exist? More importantly, let's say that I am retrieving the default 10 results per request. Let's say there are 15 results. If I request the second "page", what will the next_url value in the response be? In other words, how can you provide an accurate next_url in your responses if you're not calculating the total number of results? At some point, aren't you providing a next_url that will return 0 results?