restful: addition of pagination

@jirikuncar sure! It makes sense :smile: