Skip to content

Instantly share code, notes, and snippets.

@juanluelguerre
Created April 15, 2018 11:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juanluelguerre/6fd52057685254777441eb6dc3844319 to your computer and use it in GitHub Desktop.
Save juanluelguerre/6fd52057685254777441eb6dc3844319 to your computer and use it in GitHub Desktop.
Snippet to Add Swagger to ConfigureServices(IServiceCollection services)
// Add Swagger
services.AddSwaggerGen(options =>
{
options.SwaggerDoc("v1",
new Info
{
Version = "v1",
Title = "Taskin API",
Description = "API to expose Taskin logic",
TermsOfService = "https://github.com/juanluelguerre/Taskin/blob/master/LICENSE"
}
);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment