Instantly share code, notes, and snippets.

Embed
What would you like to do?
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