add pagination, sort and search
pagination, sort and search should be very generalized to be used for multiple endpoints
it's currently only needed for the
_list
endpoint