Skip to content

Commit

Permalink
EES-5663 Prefix OpenAPI document version paths with v
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsim committed Nov 18, 2024
1 parent 5c64ab6 commit 6c0e642
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

app.UseSwagger(options =>
{
options.RouteTemplate = "/swagger/{documentName}/openapi.json";
options.RouteTemplate = "/swagger/v{documentName}/openapi.json";
});
app.UseSwaggerUI(options =>
{
Expand All @@ -48,7 +48,7 @@
foreach (var description in app.DescribeApiVersions())
{
options.SwaggerEndpoint(
url: $"/swagger/{description.GroupName}/openapi.json",
url: $"/swagger/v{description.GroupName}/openapi.json",
name: $"v{description.GroupName}");
}
});
Expand Down

0 comments on commit 6c0e642

Please sign in to comment.