Last active
December 6, 2017 11:04
-
-
Save talkingdotnet/576f044466f690f87f63a6b51138d965 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
public void ConfigureServices(IServiceCollection services) | |
{ | |
services.AddMvc(); | |
services.AddSwaggerGen(c => | |
{ | |
c.SwaggerDoc("v1", new Info | |
{ | |
Version = "v1", | |
Title = "My API", | |
Description = "My First ASP.NET Core Web API", | |
TermsOfService = "None", | |
Contact = new Contact() { Name = "Talking Dotnet", Email = "[email protected]", Url = "www.talkingdotnet.com" } | |
}); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment