Skip to content

lhzcm/Swashbuckle.Extension.Mvc

 
 

Repository files navigation

Swashbuckle.Extension.Mvc

Extension of Swashbuckle for ASP.NET MVC4

Quick Start

  • Pull Source Code & Build Project:
git clone git@github.com:qinyuanpei/Swashbuckle.Extension.Mvc.git
  • Add Reference To Your Project:
using Swashbuckle.Extension.Mvc;
  • Replace IApiExplore in Global.asax.cs:
var assembly = typeof(DefaultMvcProject.MvcApplication).Assembly;
var apiExplorer = new MvcApiExplorer(assembly, GlobalConfiguration.Configuration);
GlobalConfiguration.Configuration.Services.Replace(typeof(IApiExplorer), apiExplorer);
  • Add SwaggerConfig.cs in App_Start. See more details at Swashbuckle.WebApi:

  • Enjoy Swagger in ASP.NET MVC :)

支持ASP.NET MVC的Swagger

Related Links:

About

Extension of Swashbuckle for ASP.NET MVC4

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 63.9%
  • JavaScript 18.7%
  • HTML 16.3%
  • Other 1.1%