Skip to content

Instantly share code, notes, and snippets.

@umayeras
Created October 15, 2020 07:52
Show Gist options
  • Save umayeras/c1534d5f87d2fcf2e855c9467867e794 to your computer and use it in GitHub Desktop.
Save umayeras/c1534d5f87d2fcf2e855c9467867e794 to your computer and use it in GitHub Desktop.
services.AddSwaggerGen(c =>
{
c.SwaggerDoc("v1", new OpenApiInfo
{
Version = "v1",
Title = "WebApiSwagger",
Description = "Sample ASP.NET Core Web API Swagger implementation",
Contact = new OpenApiContact
{
Name = "Umay ERAS",
Email = "umayeras@hotmail.com",
Url = new Uri("http://umayeras.com"),
},
License = new OpenApiLicense
{
Name = "Use under MIT",
Url = new Uri("https://license-url"),
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment