[REST] allow control of the pagination