Loading...
Loading...
Exposes iii functions as REST API endpoints. Use when building HTTP APIs, webhooks, or inbound request handling where iii owns the route.
npx skill4agent add iii-hq/skills iii-http-endpointsbodypath_paramsheadersmethod{ status_code, body, headers }/users/:idpath_paramsHTTP request
→ RestApiModule (port 3111)
→ registerTrigger route match (method + path)
→ registerFunction handler (receives ApiRequest)
→ { status_code, body, headers } response| Primitive | Purpose |
|---|---|
| Define the handler for a route |
| Bind a route path and method to a function |
| Route configuration on the trigger |
registerWorker(url, { workerName })registerFunction(id, handler)registerTrigger({ type: 'http', config: { api_path, http_method } })req.bodyreq.path_paramsreturn { status_code: 200, body: { data }, headers: { 'Content-Type': 'application/json' } }const logger = new Logger()path_params/orders/:orderIdreq.headersiii-http-invoked-functionsiii-queue-processingiii-http-endpointsiii-http-endpoints