Function that generates a list handler for API pagination.
The API endpoint path.
The options object.
Function that generates a list handler for API pagination.