.net core 在 swagger中屏掉不想显示的接口

发布时间:2020-07-27 10:10:53来源:本站阅读(932)

    很简单

    在action或controller上加标记

    [ApiExplorerSettings(IgnoreApi =true)]


关键字swagger