restful: addition of pagination

- I guess `page=1` is clear enough.
- `endpoint` should be required argument, shouldn't be?