vSwashbuckle.Core 1.0.2

Seamlessly adds a Swagger to WebApi projects!

Install-Package vSwashbuckle.Core -Version 1.0.2
dotnet add package vSwashbuckle.Core --version 1.0.2
<PackageReference Include="vSwashbuckle.Core" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add vSwashbuckle.Core --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

.EnableSwagger(c =>
{
c.VerifyFunc = m => true; // verify token
c.LoginFunc = (username, pwd) => "123123";// check login and return token for swagger authent
})

in file WebApiConfig.cs modify line routeTemplate to :

config.Routes.MapHttpRoute(
name: "DefaultApi",
routeTemplate: "api/{controller}/{action}/{id}",
defaults: new { id = RouteParameter.Optional }
);

.EnableSwagger(c =>
{
c.VerifyFunc = m => true; // verify token
c.LoginFunc = (username, pwd) => "123123";// check login and return token for swagger authent
})

in file WebApiConfig.cs modify line routeTemplate to :

config.Routes.MapHttpRoute(
name: "DefaultApi",
routeTemplate: "api/{controller}/{action}/{id}",
defaults: new { id = RouteParameter.Optional }
);

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.2 140 2/21/2019
1.0.1 115 1/22/2019