Add pagination to a RESTful API endpoint
Implement pagination in the following REST API endpoint: [ENDPOINT_DESCRIPTION]. Ensure the endpoint returns paginated results and includes metadata like total count and next page token.
Use this when you need to handle large datasets in a RESTful API by adding pagination.