1.0.3 • Published 10 months ago

directus-extension-flowtohtml v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

Execute a Flow and Return a Custom HTML Response with Custom HTTP Headers

Create a Webhook Flow

Choose a webhook and select GET.

URL to Reach

To access the extension and run your flow, change the URL of your flow from:

.../flows/trigger/:id-of-your-flow

to

.../flowtohtml/:id-of-your-flow

You can also add queries to the URL, such as:

.../flowtohtml/:id-of-your-flow?key=value

How to Format Your Payload

The data at the end of your flow must be in the following JSON format:

{
    "code": 307,
    "headers": [
        {
            "name": "location",
            "value": "https://goodbye.world"
        }
    ],
    "html": "<p>Hello world!</p>"
}

code is required.

headers and html are optional.

headers can contain as many entries as you need.

1.0.3

10 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago