I'm trying to manage nodered with admin api endpoints.
If I want to import an existing flow (not all flows but only some selected ones) from another nodered instance :
- I do a http get from the source nodered server to get the selected flow with /flow/:id endpoint,
- then I http post the result to the destination nodered server using the /flow endpoint
This works fine while no subflow is used in the exported/imported flow, since the get /flow/:id doesn't return the definition of subflow. So what should we do if we need to import a flow with a subflow in it ?
I saw the possibility to use the /flow/global endpoint to get all subflows, but seems no further detail endpoinds are provided which allow us to manager subflow (crud).
Thanks a lot for advice