Expand description
HTTP API for WeftOS task execution.
Provides a lightweight HTTP endpoint that Paperclip (and other orchestrators) can call to submit tasks to the WeftOS kernel.
§Endpoints
POST /api/v1/execute– submit a task for agent executionPOST /api/v1/govern– evaluate a governance decisionGET /api/v1/health– liveness probe
§Feature Gate
This module is gated behind the http-api feature flag and is
not included in the default feature set.
Structs§
- Error
Response - Error response returned on failure.
- Execute
Request - Request body for
POST /api/v1/execute. - Execute
Response - Response body for
POST /api/v1/execute. - Govern
Request - Request body for
POST /api/v1/govern. - Govern
Response - Response body for
POST /api/v1/govern. - Health
Response - Health check response for
GET /api/v1/health. - Http
ApiHandler - The kernel-side HTTP API handler.
Enums§
- Route
- Route identifier for the HTTP API.
Functions§
- dispatch
- Dispatch a raw JSON body to the appropriate handler and return the JSON response bytes.
- match_
route - Parse a method + path pair into a
Route.