cloud-of-things / cot-java-rest-sdk

Cloud of Things Java Rest SDK (Cloud der Dinge Java Rest SDK)
MIT License
8 stars 10 forks source link

JsonArray pagination is not efficient #72

Closed rokkbert closed 5 years ago

rokkbert commented 6 years ago

Currently it seems that the existence of a "next" page is determined by the availability of the next ressource. Before doing that request we might check for totalPages (optional, but could be there) and if the number of elements on the current page is < the pageSize, in which case no next page will exist.

http://cumulocity.com/guides/reference/rest-implementation/

Matthimatiker commented 5 years ago

This should have been fixed by pull request #73.