Example how to include pagination data in the response when creating an API