summaryrefslogtreecommitdiff
path: root/src-py
diff options
context:
space:
mode:
authorLV-426 <lv-426@taproot.org.il>2014-10-27 12:35:13 +0200
committerLV-426 <lv-426@taproot.org.il>2014-10-27 12:35:13 +0200
commit1e314f66a75a0cd32b933771fe1031891af68d2c (patch)
treeee957a19b5e073fc1574355482ea32c013e92d8c /src-py
parent6629438b2f1a9d54d152281342d4d7e0641b7254 (diff)
REST api impl: '/graph/topo-diff-commit'
Diffstat (limited to 'src-py')
-rw-r--r--src-py/rhizi_api.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/src-py/rhizi_api.py b/src-py/rhizi_api.py
index 07778896..77f753e6 100644
--- a/src-py/rhizi_api.py
+++ b/src-py/rhizi_api.py
@@ -114,7 +114,13 @@ def topo_diff_commit():
"""
commit a graph topology diff
"""
- pass
+ topo_diff_dict = request.get_json()['topo_diff']
+ __sanitize_input(topo_diff_dict)
+
+ topo_diff = Topo_Diff.from_dict(topo_diff_dict)
+
+ op = dbc.DBO_topo_diff_commit(topo_diff)
+ return __common_exec(op)
@webapp.route("/graph/attr-diff-commit", methods=['POST'])
def attr_diff_commit():