Currently, if we want to list the Space Permissions for given Confluence Space(s), following two endpoints can be used:
GET /wiki/rest/api/space?expand=permissions
GET /wiki/rest/api/space/{spaceKey}?expand=permissions
The problem with them is that the “permissions” field is a plain array of Permission objects, instead of a paginated list. When a Space has hundreds (or even thousands) of Space Permissions, the payload can easily be multiple megabytes big.
In addition to the existing POST/DELETE /wiki/rest/api/space/{spaceKey}/permission
endpoints, I wonder if there should also be a new endpoint like GET /wiki/rest/api/space/{spaceKey}/permission
, which support proper pagination?