Namespace Kuestenlogik.Bowire.Mock.State
Classes
- MockBucketDerivation
Buckets and CRUD routes a schema makes obvious (#1098). A schema mock's recording carries every operation with its path template and a response synthesised from the schema; where a collection path answers a list and an item path under it, with one id parameter, answers a record of the same shape, that pair is a resource: a bucket seeded with records of the item's shape, and a CRUD route over it.
- MockBucketInfo
A bucket as the mock's admin surface shows it (#1100).
- MockBucketStore
The data buckets of a running mock (#1096): JSON the mock holds and requests change. Seeded from the configuration when the mock starts; the state lives in memory, so a restart starts from the configuration again.
- MockCrudRouteInfo
A CRUD route as the mock's admin surface shows it (#1100).
- MockCrudRoutes
The REST routes over the mock's data buckets (#1096): a collection path and a record path under it, answering as a small backend would, so a
POSTfollowed by aGETreturns what was just created.
- MockDataAdmin
The admin surface over a running mock's data (#1100): read, set and reset a bucket, switch a CRUD route on and off, reload the configuration's buckets and routes, so a test starts from a state it names. One implementation behind the mock's own token-gated control surface (
/__bowire/mock/…) and the workbench's management API (/api/mocks/{mockId}/data/…).