FEATURE: Provide page size limits for List queries
Opened this issue · 0 comments
andriikaplanovskyi commented
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