We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
API Platform version(s) affected: 3.3.0
Description On an apiResource, we set a security but this not appear on the swagger
How to reproduce
#[ApiResource( operations: [ new GetCollection()], security: "is_granted('ROLE_ADMIN')" )] class Author { }
then on the documentation, i like to see a 403 response like the one i get if I don't have access like this :
Possible Solution
Additional Context
The text was updated successfully, but these errors were encountered:
PR welcome code is at
core/src/OpenApi/Factory/OpenApiFactory.php
Lines 363 to 371 in bd0e929
Sorry, something went wrong.
No branches or pull requests
API Platform version(s) affected: 3.3.0
Description
On an apiResource, we set a security but this not appear on the swagger
How to reproduce
then on the documentation, i like to see a 403 response like the one i get if I don't have access
like this :
Possible Solution
Additional Context
The text was updated successfully, but these errors were encountered: