Created
April 15, 2018 11:36
-
-
Save juanluelguerre/6fd52057685254777441eb6dc3844319 to your computer and use it in GitHub Desktop.
Snippet to Add Swagger to ConfigureServices(IServiceCollection services)
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
// 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