Skip to content

Feature Expand Collapse

teociaps edited this page Nov 27, 2025 · 2 revisions

Expand/Collapse All Operations

Add controls to expand or collapse all operations within a tag group simultaneously.

Why Use It?

  • Reduced Clutter - Collapse all when not needed
  • Quick Overview - Expand all to see everything
  • Time Saver - No need to click each operation individually

Visual Example

expand-collapse all gif

Quick Start

Swashbuckle

using AspNetCore.Swagger.Themes;

app.UseSwaggerUI(Theme.Dark, options =>
{
    options.EnableExpandOrCollapseAllOperations();
});

NSwag

using AspNetCore.Swagger.Themes;

app.UseSwaggerUi(Theme.Dark, settings =>
{
    settings.EnableExpandOrCollapseAllOperations();
});

Compatibility

Works with:

Next Steps


Back to Advanced Options

Clone this wiki locally