Skip to content

Instantly share code, notes, and snippets.

@talkingdotnet
Last active December 6, 2017 11:04
Show Gist options
  • Save talkingdotnet/576f044466f690f87f63a6b51138d965 to your computer and use it in GitHub Desktop.
Save talkingdotnet/576f044466f690f87f63a6b51138d965 to your computer and use it in GitHub Desktop.
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