Skip to content

Instantly share code, notes, and snippets.

@Guifgr
Last active July 7, 2023 12:57
Show Gist options
  • Save Guifgr/0b942eb1752f3da06fe71b90422c4ebb to your computer and use it in GitHub Desktop.
Save Guifgr/0b942eb1752f3da06fe71b90422c4ebb to your computer and use it in GitHub Desktop.
swagger show summary
<PropertyGroup>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>$(NoWarn);1591</NoWarn>
</PropertyGroup>
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