I'm using springfox-swagger-ui 2.8.0 which ships with Swagger UI 3.7.0.
I want to get rid of the controller list in front of the api documentation page, pretty useless for me (every tab is empty).
I've already tried to annotate the controller class with @ApiIgnore, but of course this removes the rest api documentation as well, which I need.
Basically, I want to remove this:
while keeping this:
I digged through online docs, GitHub issues, StackOverflow questions, Google... nothing. Am I the only with this request?
To hide the "Models" section, add defaultModelsExpandDepth: -1 to the Swagger UI configuration code in your index. html . Note the option name uses plural Model*s* not Model . Swagger UI also has many other configuration options that control API documentation rendering.
By adding this attribute on a controller or action and specifying IgnoreApi = true , it gets hidden from auto-generated documentation. However, this user has to apply this to around 80 controllers.
Try this attribute on the controller
[ApiExplorerSettings(IgnoreApi = true)]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With