netcore webapi 加入 swagger

1.nuget Swashbuckle.AspNetCore

2. Startup.cs 中

 3. 默认Controller中:

原文地址:https://www.cnblogs.com/25miao/p/12869330.html