Basically my question is the same as this one but for Springdoc (and not Springfox).
In short, I have a Spring-boot app and I am using spring-security @PreAuthorize annotation to secure some of my apis, currently based on hasAuthority
only.
Is there a way I can automatically modify the specific resource swagger description based on the annotation? I guess it has something to do with overriding one of Springdoc's default class behaviors (maybe OpenAPICustomiser
?) but I'm not sure how to do it.