factory-mock

command
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2026 License: AGPL-3.0 Imports: 16 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL