How to hide the Models section in Swagger UI?

前端 未结 5 1268
遇见更好的自我
遇见更好的自我 2020-12-20 17:03

I use Swagger UI to display API documentation. By default, it displays the \"Models\" section at the bottom:

How to hide it?

5条回答
  •  情深已故
    2020-12-20 17:42

    In Docket bean just add new

    Docket(DocumentationType.SWAGGER_2).ignoredParameterTypes(YourClass.class,YourAnother.class)

    I hope its helpful

提交回复
热议问题