Support for paging in the REST-api