webapi 设置不显示接口到swaggerUI

 请添加如下属性:

[ApiExplorerSettings(IgnoreApi = true)]

原文地址:https://www.cnblogs.com/zinan/p/10260206.html