News for hackers. Stuff that matters.
Re:Building Lob's API by 7Figures2Commas on Wednesday September 18, 2013 @06:16PM (#6408528)
Maybe 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?

There are no comments on this comment yet.