What's the easiest way to configure Swagger for Web API 2.2? I went to swagger.io but there was a lot of random info to process. I'm somewhat familiar with Swagger. It was in place for Web API projects at the last 2 organizations I worked for. But I've never actually tried to set Swagger up from scratch for a new Web API project.
Just install the Nugget package "Swashbuckle" to your Web API project. Then run the solution and hit the solution base url with '/swagger', you will get the default swagger page with your api controller methods in it.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.