Goal
Expose a Function as an HTTP endpoint so external clients can call it via REST.Steps
1. Enable the REST API module
Make sureiii-config.yaml has the REST API module enabled:
iii-config.yaml
2. Register the Function
- Node / TypeScript
- Python
- Rust
http-endpoint.ts
3. Register the HTTP trigger
- Node / TypeScript
- Python
- Rust
http-trigger.ts
4. Try it
Result
Your Function is now accessible asPOST /users on port 3111. The http trigger handles request parsing and response serialization automatically.
HTTP-triggered Functions receive an
ApiRequest and should return an ApiResponse. See the SDK Reference for type details.