Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 1.08 KB

README.md

File metadata and controls

28 lines (23 loc) · 1.08 KB

Swashbuckle.Extension.Mvc

Extension of Swashbuckle for ASP.NET MVC4

Quick Start

  • Pull Source Code & Build Project:
git clone [email protected]: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: