Documentation
¶
Overview ¶
Command factory-mock serves the factory's HTTP contract (api/openapi.yaml) with canned responses from api/examples, for agent and web development before the real dispatcher exists. Each request is matched to its operation by method and path template and answered with that operation's example; unknown paths get 404 and a wrong method 405, both as application/problem+json. GET /api/v1/stream sends the example events and stays open.
It uses plain net/http, not the generated Echo server, and checks nothing: no auth, no request validation.
Click to show internal directories.
Click to hide internal directories.