API Dashboard
Trax.Api.Dashboard is the Trax operations dashboard as a single-page app (React) that a Trax.Api
host serves: runs, the work queue, dead letters, manifests and groups, logs, trains, effects,
settings, persisted operations and state machines. The built app ships inside the package, so the
host needs no Node. Everything it shows or changes goes through the host's Trax GraphQL endpoint
(the operations namespace and the machines root), which authorizes it on its own. A demo runs
on recorded data at traxsharp.net/dashboard.
It is the one operator dashboard Trax ships. The Blazor Trax.Dashboard package it replaced is
removed; Moving from the Blazor dashboard
says what a host changes.
using Trax.Api.Dashboard.Extensions;
using Trax.Api.GraphQL.Extensions;
builder.Services.AddTraxGraphQL(graphql => graphql.RequireAuthorization());
var app = builder.Build();
app.UseTraxGraphQL();
app.UseTraxApiDashboard(dashboard => dashboard.RequirePolicy("TraxAdmin")); // /trax/dashboard| Page | Description |
|---|---|
| UseTraxApiDashboard | Serves the app at a path, behind the authorization posture you choose, with its security and caching headers; TraxApiDashboardOptions |