Skip to content

Support @Hidden annotation on REST repositories #1881

@mjustin

Description

@mjustin

Is your feature request related to a problem? Please describe.
I have a Spring Data REST project where I would like to exclude a specific REST repository from the generated OpenAPI documentation. I do not see an easy way to do this. If this were a controller, I could merely annotate it with @Hidden to achieve this goal.

Describe the solution you'd like
When using springdoc-openapi-data-rest, it would be nice if specific repositories could be disabled using @Hidden in the same manner as applying it to a controller hides the controller. A repository thus annotation would be completely skipped as though it did not exist when generating the OpenAPI description.

Additional context
This feels in line with how other annotations are supported in @Repository classes, for instance @SecurityRequirement and @Tag

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions