diff --git a/AdminUI/LearningHub.Nhs.AdminUI/Views/Shared/_Layout.cshtml b/AdminUI/LearningHub.Nhs.AdminUI/Views/Shared/_Layout.cshtml index 658a30add..d12be205a 100644 --- a/AdminUI/LearningHub.Nhs.AdminUI/Views/Shared/_Layout.cshtml +++ b/AdminUI/LearningHub.Nhs.AdminUI/Views/Shared/_Layout.cshtml @@ -81,4 +81,5 @@ @RenderSection("Scripts", required: false) + @await Component.InvokeAsync("Version") diff --git a/LearningHub.Nhs.WebUI/Views/Shared/Tenant/LearningHub/_Layout.cshtml b/LearningHub.Nhs.WebUI/Views/Shared/Tenant/LearningHub/_Layout.cshtml index 647e5c3bf..0c96940f7 100644 --- a/LearningHub.Nhs.WebUI/Views/Shared/Tenant/LearningHub/_Layout.cshtml +++ b/LearningHub.Nhs.WebUI/Views/Shared/Tenant/LearningHub/_Layout.cshtml @@ -164,6 +164,7 @@ + @await Component.InvokeAsync("Version") @functions { public async Task DisplayOffline() diff --git a/ReportAPI/LearningHub.Nhs.ReportApi/ServiceCollectionExtension.cs b/ReportAPI/LearningHub.Nhs.ReportApi/ServiceCollectionExtension.cs index d01574338..0d8cb488d 100644 --- a/ReportAPI/LearningHub.Nhs.ReportApi/ServiceCollectionExtension.cs +++ b/ReportAPI/LearningHub.Nhs.ReportApi/ServiceCollectionExtension.cs @@ -37,9 +37,10 @@ public static void ConfigureServices(this IServiceCollection services, IConfigur var settings = new Settings(); configuration.Bind("Settings", settings); + var buildNumber = $"Build Number: {configuration["Swagger:BuildNumber"]}"; var swaggerTitle = configuration["Swagger:Title"]; var swaggerVersion = configuration["Swagger:Version"]; - var swaggerDescription = "This is the API documentation for version "; + var swaggerDescription = "This is the API documentation for " + buildNumber + " and version "; services.AddSwaggerGen(c => { diff --git a/WebAPI/LearningHub.Nhs.API/ServiceCollectionExtension.cs b/WebAPI/LearningHub.Nhs.API/ServiceCollectionExtension.cs index 9c8229639..58095800b 100644 --- a/WebAPI/LearningHub.Nhs.API/ServiceCollectionExtension.cs +++ b/WebAPI/LearningHub.Nhs.API/ServiceCollectionExtension.cs @@ -62,9 +62,10 @@ public static void ConfigureServices(this IServiceCollection services, IConfigur IMapper mapper = mappingConfig.CreateMapper(); services.AddSingleton(mapper); + var buildNumber = $"Build Number: {configuration["Swagger:BuildNumber"]}"; var swaggerTitle = configuration["Swagger:Title"]; var swaggerVersion = configuration["Swagger:Version"]; - var swaggerDescription = "This is the API documentation for version "; + var swaggerDescription = "This is the API documentation for " + buildNumber + " and version "; services.AddSwaggerGen(c => { var version = typeof(Program).Assembly.GetName().Version;