OpenAPI Host Contract
Milestone 3 adds a CMS-agnostic OpenAPI contract for the host inspection and ingest surface used by CLI workflows.
Spec Location
- Source file:
packages/contracts/openapi/sloth-api.openapi.yaml
Covered Endpoints
GET /healthzGET /sloth/inspection/plugin-statusGET /sloth/inspection/contract-schemaGET /sloth/contractsGET /sloth/contracts/{name}POST /sloth/contracts/ingest
Mock Server
A deterministic mock server implementation is available at:
packages/contracts/scripts/openapi-mock-server.mjs
Run it:
node packages/contracts/scripts/openapi-mock-server.mjs --port 4010
The server prints a ready marker with the bound port and serves seeded contracts from packages/contracts/src/mock/seed-contracts.json.