Better file-handling/storage for the workflow file. Save route now downloads the JSON file to local machine. (Original write_json() method is still present, but unused. Now uses the Django file storage API). Not sure if route should do both—write to /tmp and download, or just download. This is easily modified.
Parameterizes Node creation. Accomplished through a GET request at the moment (instead of POST). Adds error-checking to ensure unique Nodes.
Add an edge between node_from and node_to, given both nodes exist in the graph. Route path can probably be simplified from current /node/edge/<from>/<to> and should be moved to a POST request instead of GET.
A few changes in this PR:
write_json()
method is still present, but unused. Now uses the Django file storage API). Not sure if route should do both—write to/tmp
and download, or just download. This is easily modified.node_from
andnode_to
, given both nodes exist in the graph. Route path can probably be simplified from current/node/edge/<from>/<to>
and should be moved to a POST request instead of GET.