Last active
July 7, 2023 12:57
-
-
Save Guifgr/0b942eb1752f3da06fe71b90422c4ebb to your computer and use it in GitHub Desktop.
swagger show summary
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
<PropertyGroup> | |
<GenerateDocumentationFile>true</GenerateDocumentationFile> | |
<NoWarn>$(NoWarn);1591</NoWarn> | |
</PropertyGroup> |
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
services.AddSwaggerGen(c => | |
{ | |
c.SwaggerDoc("v1", new OpenApiInfo { Title = "TodoList API", Version = "v1" }); | |
c.IncludeXmlComments(Path.Combine(AppContext.BaseDirectory, | |
$"{Assembly.GetExecutingAssembly().GetName().Name}.xml")); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment