1.0.3 • Published 5 months ago
directus-extension-flowtohtml v1.0.3
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.