diff --git a/src/Samples/IncidentService/IncidentService/Incident.cs b/src/Samples/IncidentService/IncidentService/Incident.cs
index b75559b22..3f389d1ee 100644
--- a/src/Samples/IncidentService/IncidentService/Incident.cs
+++ b/src/Samples/IncidentService/IncidentService/Incident.cs
@@ -92,6 +92,7 @@ public Incident()
{
}
+ public void Apply(IncidentLogged _) { }
public void Apply(AgentRespondedToIncident _) => HasOutstandingResponseToCustomer = false;
public void Apply(CustomerRespondedToIncident _) => HasOutstandingResponseToCustomer = true;
diff --git a/src/Samples/IncidentService/IncidentService/IncidentService.csproj b/src/Samples/IncidentService/IncidentService/IncidentService.csproj
index 200791139..3ab359e96 100644
--- a/src/Samples/IncidentService/IncidentService/IncidentService.csproj
+++ b/src/Samples/IncidentService/IncidentService/IncidentService.csproj
@@ -8,7 +8,10 @@
-
+
+
+
+
diff --git a/src/Samples/IncidentService/IncidentService/Program.cs b/src/Samples/IncidentService/IncidentService/Program.cs
index 3da13d195..e37c8cdec 100644
--- a/src/Samples/IncidentService/IncidentService/Program.cs
+++ b/src/Samples/IncidentService/IncidentService/Program.cs
@@ -13,6 +13,10 @@
// Learn more about configuring OpenAPI at https://aka.ms/aspnet/openapi
builder.Services.AddOpenApi();
+//builder swagger commands
+builder.Services.AddEndpointsApiExplorer();
+builder.Services.AddSwaggerGen();
+
builder.Services.AddMarten(opts =>
{
var connectionString = builder.Configuration.GetConnectionString("Marten");
@@ -60,6 +64,10 @@
app.MapWolverineEndpoints();
+app.UseSwagger();
+app.UseSwaggerUI();
+app.MapGet("/", () => Results.Redirect("/swagger"));
+
// Using the expanded command line options for the Critter Stack
// that are helpful for code generation, database migrations, and diagnostics
return await app.RunJasperFxCommands(args);