Description
Is your feature request related to a problem? Please describe.
Projects I'm working on have package by feature structure and most controllers need to be documented. Let's say there are two "maintenance" endpoints which are hidden. So there are two options to exclude documents from documentation
-
Add
@Hidden
annotation to controllers:
I'm not fond of adding extra annotations like@Hidden
to code to disable default behavior if
behavior can be changed. -
Add all packages to which need to be documented to
springdoc.packagesToScan
property:
There would be too many packages in property and every time new controller is added property needs to be updated because of package by feature structure controllers are not in the same package.
Describe the solution you'd like
It would be useful to have property to exclude packages or paths from documentation.
For example: springdoc.packagesToExclude
and springdoc.pathsToExclude
properties.