Forum Discussion
No RepliesBe the first to reply
Related Content
- 5 years ago
- 6 years ago
- 12 months ago
and it works great if you use
localhost:port/Swagger
however, if the user specifies
localHost:port/Swagger,
swagger defaults to the petstore example.
This looks bad. How can this be disabled.
aspnetcore 3.1 and
"Swashbuckle.AspNetCore" Version="5.0.0"
"Swashbuckle.AspNetCore.Swagger" Version="5.0.0"
app.UseSwagger();
app.UseSwaggerUI(c =>
{
c.SwaggerEndpoint(@"/swagger/v1/swagger.json", "Versioned API v1.0");
});
thanks