Skip to content

Instantly share code, notes, and snippets.

@talkingdotnet
Created December 8, 2017 05:52
Show Gist options
  • Save talkingdotnet/6bd768de2ea7e30bfce58ef70bae625d to your computer and use it in GitHub Desktop.
Save talkingdotnet/6bd768de2ea7e30bfce58ef70bae625d to your computer and use it in GitHub Desktop.
services.AddSwaggerGen(c =>
{
c.SwaggerDoc("v1", new Info
{
Version = "v1",
Title = "My API",
Description = "My First ASP.NET Core Web API",
Contact = new Contact() { Name = "Talking Dotnet", Email = "contact@talkingdotnet.com", Url = "www.talkingdotnet.com" }
});
c.SwaggerDoc("v2", new Info
{
Version = "v2",
Title = "New API",
Description = "Sample Web API",
Contact = new Contact() { Name = "Talking Dotnet", Email = "contact@talkingdotnet.com", Url = "www.talkingdotnet.com" }
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment