Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add URL to Pagination response #1847

Open
leseb opened this issue Mar 31, 2025 · 0 comments
Open

Add URL to Pagination response #1847

leseb opened this issue Mar 31, 2025 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@leseb
Copy link
Collaborator

leseb commented Mar 31, 2025

🚀 Describe the new functionality needed

Right now the pagination results are:

class PaginatedResponse(BaseModel):
    """A generic paginated response that follows a simple format.

    :param data: The list of items for the current page
    :param has_more: Whether there are more items available after this set
    """

    data: List[Dict[str, Any]]
    has_more: bool

We want to add URL just like stripe pagination does.

💡 Why is this needed? What if we don't build it?

Improves user experience.

Other thoughts

No response

@leseb leseb added the enhancement New feature or request label Mar 31, 2025
@leseb leseb added the good first issue Good for newcomers label Mar 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant