From 1e314f66a75a0cd32b933771fe1031891af68d2c Mon Sep 17 00:00:00 2001 From: LV-426 Date: Mon, 27 Oct 2014 12:35:13 +0200 Subject: REST api impl: '/graph/topo-diff-commit' --- src-py/rhizi_api.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src-py') 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(): -- cgit v1.3.1