Responding to HTTP Requests

Creating HTTP Endpoints

The HTTP Endpoint event can be used to handle requests to a, potentially parameterized, route. Responses can be sent using the Respond to HTTP Request node.

This endpoint will handle call to https://<your-project-name>.midio.dev:<your assigned port>/foo/bar. Check out this guide for more information on how your endpoints are exposed to the public.

Parameterised paths

The path parameter of HTTP Endpoint supports a simple URL templating scheme, which can be used to parameterize on path and query parameters. The syntax is as follows:

/:item1/:item2?q1&q2

This path will accept any resource with two path items and query parameters named q1 and q2. The names can be anything. The values for the path items and query items will be made available as outputs on the HTTP Endpoint node.

Last updated

Was this helpful?