summaryrefslogtreecommitdiff
path: root/src-py
diff options
context:
space:
mode:
Diffstat (limited to 'src-py')
-rw-r--r--src-py/rhizi_api.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/src-py/rhizi_api.py b/src-py/rhizi_api.py
index 21c7d2a6..36463531 100644
--- a/src-py/rhizi_api.py
+++ b/src-py/rhizi_api.py
@@ -137,6 +137,17 @@ def rz_clone():
topo_diff = Topo_Diff.from_dict(topo_diff_dict)
+@webapp.route("/graph/diff-commit-topo", methods=['POST'])
+def diff_commit_topo():
+ """
+ commit a graph topology diff
+ """
+ def sanitize_input(req):
+ topo_diff_dict = request.get_json()['topo_diff']
+ topo_diff = Topo_Diff.from_dict(topo_diff_dict)
+ return topo_diff;
+
+ topo_diff = sanitize_input(request)
op = dbc.DBO_topo_diff_commit(topo_diff)
return __common_exec(op)