Swashbuckle.AspNetCore icon indicating copy to clipboard operation
Swashbuckle.AspNetCore copied to clipboard

Endpoint is missing in swagger when i use WithGroupName in asp net core minimal apis

Open vabka opened this issue 3 years ago • 4 comments

Swashbuckle.AspNetCore version: 6.2.3 .NET Version: 6.0.100-rc.2.21505.57 My code:

var builder = WebApplication.CreateBuilder(args);
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen();

var app = builder.Build();
app.MapSwagger();
app.UseSwaggerUI();

app.MapGet("/a", () => "Hello world"); // this one exist
app.MapGet("/b", () => "Hello world2").WithGroupName("test"); // this one not 

app.Run();

vabka avatar Oct 25 '21 22:10 vabka