agrestio / agrest

Server-side Java REST Framework for easy access to data graphs from various backends
https://agrest.io
Apache License 2.0
81 stars 34 forks source link

Size constraints API to align with property and object constraints #592

Closed andrus closed 4 months ago

andrus commented 1 year ago

The last piece of access control API that was not yet modernized (see #445) is size constraints. While it is currently modeled as "offset" and "limit", from the access control perspective I suppose the important part is the max total number of objects returned (so just the "limit").

Let's redesign it to align with other constraint APIs (allow configuration to be done per-stack or per-request; support in AgEntityOverlay and perhaps in some annotations).

andrus commented 4 months ago

This is superseded by #675