Class BowireMockManagementEndpoints
- Namespace
- Kuestenlogik.Bowire.Mock.Management
- Assembly
- Kuestenlogik.Bowire.Mock.dll
HTTP API surface for managing UI-driven mock servers, under
{basePath}/api/mocks:
POST /api/mocks— start a mock. Accepts either an inline recording payload ({ recording, name?, port? }— the legacy embedded-host shape) OR a recording-id lookup ({ recordingId, label? }— the "Use as mock" shape).GET /api/mocks— list running mocks.GET /api/mocks/{id}— single mock detail.DELETE /api/mocks/{id}— stop a mock.GET /api/mocks/{id}/requests— request-log tail (#57).GET /api/mocks/{id}/requests/unmatched— near-miss listing (#409).POST /api/mocks/{id}/verify— verify / findAll over the journal (#409).GET/PUT /api/mocks/{id}/faults— live fault rules (#170).
public static class BowireMockManagementEndpoints
- Inheritance
-
BowireMockManagementEndpoints
- Inherited Members
Remarks
One owner — BowireMockHostManager. Replaces the
v1.x split with a separate MockRegistry + the v2.x
host-manager-only /api/mock/* surface (#223).
Opt-in: embedded hosts that pull in Kuestenlogik.Bowire.Mock
call builder.Services.AddBowireMockManagement() +
app.MapBowireMockManagement() alongside the usual
AddBowire() / MapBowire(). Standalone bowire
CLI wires both automatically.
Methods
MapBowireMockManagement(IEndpointRouteBuilder, string)
Mount the mock-management endpoints under basePath
(typically "/bowire" for the workbench mount).
public static IEndpointRouteBuilder MapBowireMockManagement(this IEndpointRouteBuilder endpoints, string basePath = "/bowire")
Parameters
endpointsIEndpointRouteBuilderbasePathstring