From 56d2ed3f70384a3ad8677be3387af5a38de356e8 Mon Sep 17 00:00:00 2001 From: Kazuhito Yokoi Date: Wed, 8 Aug 2018 15:26:28 +0900 Subject: [PATCH] Updated Design: Node Generator (markdown) --- Design:-Node-Generator.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Design:-Node-Generator.md b/Design:-Node-Generator.md index 054d046..f29b8ab 100644 --- a/Design:-Node-Generator.md +++ b/Design:-Node-Generator.md @@ -12,7 +12,7 @@ Swagger is one of the famous specification for REST API. And it’s used for API In general, Node-RED users write JavaScript code in function node when they want to realize custom handling or algorism. Current function node isn’t suitable for reusing nodes because the way to share their function node is only flow exporting function using JSON data. To solve the problem, Node generator supports creating original nodes from JavaScript code in function node. Node-RED users can easily create original nodes and publish them on npm library to share their nodes with other Node-RED users. ### (3) Subflow -In terms of reuse, subflow unit is also suitable for sharing with other Node-RED users. In the future, Node generator will support to create original node from subflow. Node-RED users can wrap flow as original nodes. For example, template node which has authentication header and http request node which has URL are a typical pair which a lot of Node-RED users use to connect to cloud services. Node-RED generator can generate original nodes from subflow which has the flow. And they can easily share them with other Node-RED users via npm repository. +In terms of reuse, subflow unit is also suitable for sharing with other Node-RED users. In the future, Node generator will support to create original node from subflow. Node-RED users can wrap flow as original nodes. For example, template node which has authentication header and http request node which has URL are a typical pair which a lot of Node-RED users use to connect to cloud services. Node generator can generate original nodes from subflow which has the flow. And they can easily share them with other Node-RED users via npm repository. ## Flow editor UI design In the first version, Node-RED flow editor will support to generate nodes from Swagger definition and function node. “Creating nodes” item will be added under “Export” in the menu.