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

Introducing api reader that extends rest api endpoint description with the permissions details that given endpoint requires. #861

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

pchondzinski
Copy link

Using given reader the generated API documentation will add information about required permissions. Like on the picture below.
api with premissions info

The implementation does not have any permission extraction as the value of @PreAuthorize may contains also some custom expressions. E.g. @PreAuthorize("hasAuthority('FOO_BLA_READER') or evaluatesToTrue(#form.canReadFooBla)")
In such case generated documentation presents following:
api with premissions info 2
Which still seems to be some hint of what is required to be successfully authorized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant