* Add dashboard API foundation Merge dashboard API foundation into dashboard-v2 * Harden dashboard API provider Documents the dashboard API contract, adds provider behavior tests, and degrades diagnostics capability states independently. * Add DashboardApi configuration to appsettings.json
21 lines
636 B
C#
21 lines
636 B
C#
using CShells.FastEndpoints.Features;
|
|
using CShells.Features;
|
|
using Elsa.Dashboard.Api.Extensions;
|
|
using JetBrains.Annotations;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace Elsa.Dashboard.Api.ShellFeatures;
|
|
|
|
[ShellFeature(
|
|
DisplayName = "Dashboard API",
|
|
Description = "Provides operational dashboard API endpoints for Elsa Studio",
|
|
DependsOn = ["ElsaFastEndpoints", "WorkflowInstances", "WorkflowRuntime"])]
|
|
[UsedImplicitly]
|
|
public class DashboardApiFeature : IFastEndpointsShellFeature
|
|
{
|
|
public void ConfigureServices(IServiceCollection services)
|
|
{
|
|
services.AddDashboardApiServices();
|
|
}
|
|
}
|