request_all function

Request a paginated resource from the PGS REST API