Package base Swagger for WebApi AspNetCore.
Version | Downloads | |
---|---|---|
Marco.Swagger |
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": []
}