http-endpoints
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 - RestApiModule serves all registered routes on port 3111
- Path parameters use colon syntax (e.g.
/users/:id) and arrive inpath_params
Architecture
HTTP request
→ RestApiModule (port 3111)
→ registerTrigger route match (method + path)
Related skills