Hello,
We are designing an API that will support pagination. In order to cap the number of results that come back, we allow 3rd parties to pass in a maxResults query parameter.
The majority of public APIs that I’ve researched allow for maxResults = 0 to (something), inclusive. But I can’t see why 0 would ever be an acceptable value? Does anyone have insight into this? Why would anyone ever need to call an endpoint and not get any results back?
One counter argument that I’ve heard is that maybe you just want to count the totalResults value. But you could do that with maxResults = 1.
Thanks,
Alex