WIP restful: addition of pagination

you set the same value on line 235