Closed d4rkm0nkey closed 6 months ago
I am trying to add minimal api endpoints grouped in swagger:
var group = app.MapGroup("jobs"); group = group.WithGroupName("MyJob"); group.MapGet("MyJob",...).WithGroupName("MyJob"); group.MapPost("MyJob", ...).WithGroupName("MyJob"); group.MapDelete("MyJob", ...).WithGroupName("MyJob"); app.MapGet("/jobs/TestJob", ...); app.MapPost("/jobs/TestJob",...); app.MapDelete("/jobs/TestJob", ...);
The result always looks like this:
Instead of default I want to have two groups. One named MyJob and one named TestJob.
I had to use WithTags() instead of WithGroupName(). Now it works.
WithTags()
WithGroupName()
I am trying to add minimal api endpoints grouped in swagger:
The result always looks like this:![image](https://github.com/RicoSuter/NSwag/assets/19959176/a894f804-0ff5-479a-9e82-a6df38068e7e)
Instead of default I want to have two groups. One named MyJob and one named TestJob.