VirtualMJ

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

1. Go to Web link https://www.nuget.org/packages/Swashbuckle/ and check which version do we want.

2. Open Vs project and go to NuGet Tool Console, type "Install-Package Swashbuckle -Version 5.3.2".

3. It will generate a new file "SwaggerConfig" in App_Start folder. You can change the Description by this line " c.SingleApiVersion("v1", "Libaray.Web");"

4. run the application then redirect to http://localhost:49919/swagger, you will get your API document. 

posted on 2016-05-05 12:31  小马过河MJ  阅读(290)  评论(0编辑  收藏  举报