summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client/rz_api_backend.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/client/rz_api_backend.js b/src/client/rz_api_backend.js
index 12bf8d45..a5aafff6 100644
--- a/src/client/rz_api_backend.js
+++ b/src/client/rz_api_backend.js
@@ -241,6 +241,23 @@ define(['model/core'], function(model_core) {
ajax_rs('/graph/clone', req_opts, on_success, on_error);
}
+ /**
+ * create rzdoc
+ */
+ this.rzdoc_create = function(rzdoc_name, on_success, on_error) {
+
+ var req_opts = { type : 'POST' };
+ return ajax_rs('/rzdoc/' + rzdoc_name + '/create', req_opts, on_success, on_error);
+ }
+
+ /**
+ * list available rzdocs
+ */
+ this.rzdoc_list = function(on_success, on_error) {
+
+ var req_opts = { type : 'POST' };
+ return ajax_rs('/rzdoc/list', req_opts, on_success, on_error);
+ }
}
return new RZ_API_Backend();