Skip to content

marcoaurelioit-zz/marco-swagger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status CodeFactor GitHub release

marco-swagger

Package base Swagger for WebApi AspNetCore.

Nuget Packages

Version Downloads
Marco.Swagger NuGet NuGet

To use the package you will need to make the following settings in the WebApi Startup

Configure Services

public void ConfigureServices(IServiceCollection services)
{
    services.AddMarcoSwagger(Configuration);
}

Configure Middlewares

public void Configure(IApplicationBuilder app)
{         
    app.UseMvc();
    app.UseMarcoSwagger();
}

Add API Meta data in appsettings.json

"ApiMetaData": {
    "Name": "WebApi",
    "Description": "Description WebApi em AspNetCore",
    "DefaultVersion": "1.0",
    "VersionIngDescriptions": []
  }