1.下载程序包Swashbuckle.AspNetCore
2.在startup.cs中配置
注意:v1版本号和“swagger/v1/swagger.json”要对应上,否则报 “Not Found /swagger/v1/swagger.json”
3.在project property中勾选XML
4.具体api信息写清楚
5.地址栏输入*****/swagger/index.html
1.下载程序包Swashbuckle.AspNetCore
2.在startup.cs中配置
注意:v1版本号和“swagger/v1/swagger.json”要对应上,否则报 “Not Found /swagger/v1/swagger.json”
3.在project property中勾选XML
4.具体api信息写清楚
5.地址栏输入*****/swagger/index.html