-
Notifications
You must be signed in to change notification settings - Fork 8
Listeners: REST
TekMonks edited this page Mar 11, 2019
·
2 revisions
The REST Listener
The REST listener node is used to implement API oriented flows. It starts a REST server listening for incoming REST messages on the specified IP, Port, URL etc.
The code block below documents the format for the REST Listener node.
"listener": {
"type":"rest_listener",
"isMessageGenerator": true,
"host": "127.0.0.1",
"port":9090,
"url":"/hello",
"allow_origin": "*",
"timeout": 120000
}
Most of the properties are self explanatory. The allow_origin
property allows for CORS controls. Timeout
is the http timeout for the server.
The property isMessageGenerator
must be set to true for this node.
The REST listener listens for POST messages only currently.
(C) 2018 - 2021 TekMonks