diff --git a/src/GovUk.Education.ExploreEducationStatistics.Public.Data.Api/Program.cs b/src/GovUk.Education.ExploreEducationStatistics.Public.Data.Api/Program.cs index 214a54bb4fa..81854448f17 100644 --- a/src/GovUk.Education.ExploreEducationStatistics.Public.Data.Api/Program.cs +++ b/src/GovUk.Education.ExploreEducationStatistics.Public.Data.Api/Program.cs @@ -39,7 +39,7 @@ app.UseSwagger(options => { - options.RouteTemplate = "/swagger/{documentName}/openapi.json"; + options.RouteTemplate = "/swagger/v{documentName}/openapi.json"; }); app.UseSwaggerUI(options => { @@ -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}"); } });