Extension of Swashbuckle for ASP.NET MVC4
- Pull Source Code & Build Project:
git clone [email protected]:qinyuanpei/Swashbuckle.Extension.Mvc.git
- Add Reference To Your Project:
using Swashbuckle.Extension.Mvc;- Replace
IApiExploreinGlobal.asax.cs:
var assembly = typeof(DefaultMvcProject.MvcApplication).Assembly;
var apiExplorer = new MvcApiExplorer(assembly, GlobalConfiguration.Configuration);
GlobalConfiguration.Configuration.Services.Replace(typeof(IApiExplorer), apiExplorer);-
Add
SwaggerConfig.csinApp_Start. See more details at Swashbuckle.WebApi: -
Enjoy Swagger in ASP.NET MVC :)
