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

FEATURE: Provide page size limits for List queries #98

Open
andriikaplanovskyi opened this issue Jun 23, 2023 · 0 comments
Open

FEATURE: Provide page size limits for List queries #98

andriikaplanovskyi opened this issue Jun 23, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@andriikaplanovskyi
Copy link
Contributor

When quering collections of data (GetList) in our WebAPI, we do not control the page size of the data to be retrieved, i.e. if someone said per-page=1000000 then we'd return up to 1000000 entities in our response. That would be good if we can introduce (configurable) limits on the data page size for List queries.

Also, if this logic is implememtned, we need to let customers know, what was the real page size used versus the one they asked for. For these purposes we can either adjust the existing PagedList response or return additional information in the response headers:

X-Pagination-Per-Page,
X-Pagination-Total-Count,
X-Pagination-Page-Count,
X-Pagination-Current-Page

cc @fabiomaistro @dcsl-alexis

@andriikaplanovskyi andriikaplanovskyi added the enhancement New feature or request label Jun 23, 2023
@andriikaplanovskyi andriikaplanovskyi changed the title FEATURE: Provide page size limits for GetList queries FEATURE: Provide page size limits for List queries Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant