Skip to main content

Goal

Expose a Function as an HTTP endpoint so external clients can call it via REST.

Steps

1. Enable the REST API module

Make sure iii-config.yaml has the REST API module enabled:
iii-config.yaml

2. Register the Function

http-endpoint.ts

3. Register the HTTP trigger

http-trigger.ts

4. Try it

Result

Your Function is now accessible as POST /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.