diff options
| author | LV-426 <lv-426@taproot.org.il> | 2015-03-30 20:45:57 +0300 |
|---|---|---|
| committer | LV-426 <lv-426@taproot.org.il> | 2015-04-01 22:25:54 +0300 |
| commit | 70b8f6602572dc8a2deb807849036d03faa1faba (patch) | |
| tree | a5a200c17426c45fea65b0555db55da856ab5011 /src/client/rz_api_backend.js | |
| parent | a0f15c8b73c93681dd5a4b02950d3b644199783b (diff) | |
rz_api_backend: rzdoc_create(), rzdoc_list()
Diffstat (limited to 'src/client/rz_api_backend.js')
| -rw-r--r-- | src/client/rz_api_backend.js | 17 |
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(); |
