summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLV-426 <lv-426@taproot.org.il>2014-11-09 12:20:15 +0200
committerLV-426 <lv-426@taproot.org.il>2014-11-09 12:20:15 +0200
commit2aff3e7698d08194c05c658c11158943395911d7 (patch)
tree24ddbff2b9f6b2fd8c50a4b71f84c482b9fc46b0
parent71c9e8dfd4c58942bcfa8f1cdd89d769ca769660 (diff)
/graph/diff-commit-topo REST path
-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)