Expand description
Mock Suotar: a stand-in for the University of Helsinki Suotar API, and the test/dev control surface around it.
Mounted at /api/v0/mock-suotar only when TEST_MODE and USE_MOCK_SUOTAR_ENDPOINT are both on;
like mock_sisu, the gate is runtime route registration rather than #[cfg]. The simulator behind
these routes is crate::mock_suotar.
Modules§
- api
- The moocfi endpoints, one stage boundary at a time.
- commands
- The control surface’s command, health and world-dump routes.
- control
- The mock Suotar control surface: test-only routes that are not part of Suotar’s API.
Functions§
- assert_
enabled - The route cannot be reached with the flags off, so tripping this means the gate itself broke.
- contract_
route 🔒 - scope
- The mock’s whole scope. Unmatched paths and methods fall through the way Suotar’s router does, which is why the contract routes are resources with their own fallback.