Class BowireFlowSnapshotEndpoints

Namespace
Kuestenlogik.Bowire.Flows
Assembly
Kuestenlogik.Bowire.Flows.dll

Snapshot baselines for the in-browser runner (#171): what drifted, and making the new answer the baseline.

public sealed class BowireFlowSnapshotEndpoints : IBowireEndpointContribution
Inheritance
BowireFlowSnapshotEndpoints
Implements
Inherited Members

Remarks

Re-baselining was a CLI flag — bowire test --update-snapshots — which meant the person who could see the drift on screen was not the one who could act on it. They had to leave the workbench, find the flow file, and re-run everything to accept one line.

The work happens here rather than in JavaScript because the browser can neither read nor write __snapshots__/, and because the comparison has to be the one the CLI makes. A second diff in JavaScript would drift from it, and the drift would show up as a workbench that says a snapshot holds while CI says it does not.

Constructors

BowireFlowSnapshotEndpoints()

public BowireFlowSnapshotEndpoints()

Methods

MapEndpoints(IEndpointRouteBuilder, string)

Map this contribution's endpoints. Called once per host startup from BowireApiEndpoints.MapBowire.

public void MapEndpoints(IEndpointRouteBuilder endpoints, string basePath)

Parameters

endpoints IEndpointRouteBuilder

The auth-gated IEndpointRouteBuilder group every workbench feature endpoint lives under.

basePath string

The URL fragment every route is anchored under (e.g. /bowire for embedded hosts, empty for the standalone CLI).