diff --git a/Directory.Packages.props b/Directory.Packages.props index fbf8429..a14dcb9 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -17,6 +17,7 @@ + diff --git a/HrynCo.NotificationService.Api/HrynCo.NotificationService.Api.csproj b/HrynCo.NotificationService.Api/HrynCo.NotificationService.Api.csproj index 5d2362b..e4c1d02 100644 --- a/HrynCo.NotificationService.Api/HrynCo.NotificationService.Api.csproj +++ b/HrynCo.NotificationService.Api/HrynCo.NotificationService.Api.csproj @@ -8,6 +8,7 @@ + diff --git a/HrynCo.NotificationService.Api/Program.cs b/HrynCo.NotificationService.Api/Program.cs index 21a7ceb..c3e8d86 100644 --- a/HrynCo.NotificationService.Api/Program.cs +++ b/HrynCo.NotificationService.Api/Program.cs @@ -1,6 +1,7 @@ using HrynCo.NotificationService.Api; using HrynCo.NotificationService.DAL.EF; using HrynCo.NotificationService.Services; +using Scalar.AspNetCore; var builder = WebApplication.CreateBuilder(args); @@ -19,7 +20,14 @@ builder.Services.AddNotificationServices(); var app = builder.Build(); if (app.Environment.IsDevelopment()) +{ app.MapOpenApi(); + app.MapScalarApiReference(options => + { + options.Title = "HrynCo Notification Service"; + options.Theme = ScalarTheme.DeepSpace; + }); +} app.UseHttpsRedirection(); app.MapControllers();