restful: addition of pagination

Nicer as long as `_external=True` is set.