Created
December 8, 2017 05:52
-
-
Save talkingdotnet/6bd768de2ea7e30bfce58ef70bae625d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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