iii-http-endpoints
Originally fromiii-hq/skills
Installation
SKILL.md
HTTP Endpoints
Comparable to: Express, Fastify, Flask
Key Concepts
Use the concepts below when they fit the task. Not every HTTP endpoint needs all of them.
- Each route is a registered function bound to a path and method via an HTTP trigger
- The handler receives an ApiRequest object containing
body,path_params,headers, andmethod - Handlers return
{ status_code, body, headers }to shape the HTTP response - iii-http serves all registered routes on port 3111
- Path parameters use colon syntax (e.g.
/users/:id) and arrive inpath_params - Middleware can run before handlers via
middleware_function_idsin the trigger config — seeiii-http-middlewarefor details
Architecture
HTTP request
→ iii-http (port 3111)
Related skills