nanoservice-ts
comes with a series of built-on nodes to make workflow development easier.
Control Flow
if-else
A node that allows you to define a sequence of steps to be executed based on a condition.
Params
conditions
array of steps conditions
The type of condition to evaluate.
An object containing futher nodes sequence
JS expression to evaluate. In case of else
, no condition is needed.
Example of Use
{
"name": "filter-request",
"node": "@nanoservice-ts/if-else",
"type": "module"
}
Web
api-call
A node that allows you to make an HTTP request to an API.
Params
The URL to make the request to.
An object containing the headers to send.
The type of response to expect.
Example of Use
{
"name": "api",
"node": "api-call",
"type": "local"
}