Closed HugoVG closed 3 weeks ago
Could you just make endpoint that is a redirect?
List<string> versions = ["v1", "v2", "v2.1"];
// ...
app.MapGet("/swagger/current/swagger.json", () =>
{
return Results.Redirect($"/swagger/{versions.Last()}/swagger.json");
});
I'm really stupid and haven't thought about that.
What are you wanting to achieve?
I want to make a /swagger/current/swagger.json or /swagger/current/swagger.yaml with the last APIVersion from
Asp.Versioning
currently It's making
but when I try to add a document based on "v2.1" or "v2" it will render with empty paths I think this is case some people already have had before and I need a pointer where to look
What code or approach do you have so far?
Additional context
No response