What?
Show only the available REST methods in the OpenAPI document we produce.
Why?
The current OpenAPI behavior shows all REST methods even when they are not available.
For example, read-only entities show all the REST methods in the OpenAPI document.
How?
Available REST methods are limited in permissions for each role. In order to correctly show the available REST methods, we need to interrogate the current role and produce the role-specific OpenAPI that filters REST methods based on that role's permissions for each entity.
Notes
This does not require a change to the configuration.