Files
surma 61d5d5f817 sausage-plugin: the crate docs are the manual for agents; remove PROPOSAL.md
Its content lives in PROTOCOL.md (the contract), DECISIONS.md (the
reasons), and the SDK docs (how to write a plugin).
2026-10-23 02:46:47 +01:00

26 lines
1002 B
JSON

{
"openrpc": "1.2.6",
"info": {"title": "www", "version": "0.1.0"},
"components": {"schemas": {
"StartParams": {
"description": "The server configuration.",
"type": "object",
"properties": {"port": {"type": "integer", "format": "uint16", "minimum": 0, "maximum": 65535, "description": "The HTTP port."}},
"required": ["port"]
}
}},
"methods": [{
"name": "start",
"summary": "Start the HTTP server and return its process ID.",
"params": [{"name": "port", "required": true, "schema": {"type": "integer", "format": "uint16", "minimum": 0, "maximum": 65535}}],
"x-sausage-params": {"$ref": "#/components/schemas/StartParams"},
"result": {"name": "result", "schema": {"type": "string"}}
}],
"x-sausage-endpoints": {"control": {"methods": [{
"name": "stats",
"summary": "Return the number of HTTP requests.",
"params": [],
"result": {"name": "result", "schema": {"type": "integer", "format": "uint64", "minimum": 0}}
}]}}
}