[Kimchi-devel] [PATCH v3 6/8] Debug Report Rename UI: Add API in kimchi.api.js
Hongliang Wang
hlwang at linux.vnet.ibm.com
Fri Jun 13 07:09:58 UTC 2014
Added API.
Signed-off-by: Hongliang Wang <hlwang at linux.vnet.ibm.com>
---
ui/js/src/kimchi.api.js | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/ui/js/src/kimchi.api.js b/ui/js/src/kimchi.api.js
index 072d127..11b006e 100644
--- a/ui/js/src/kimchi.api.js
+++ b/ui/js/src/kimchi.api.js
@@ -683,6 +683,18 @@ var kimchi = {
});
},
+ renameReport : function(name, settings, suc, err) {
+ $.ajax({
+ url : kimchi.url + "debugreports/" + encodeURIComponent(name),
+ type : 'PUT',
+ contentType : 'application/json',
+ data : JSON.stringify(settings),
+ dataType : 'json',
+ success: suc,
+ error: err
+ });
+ },
+
deleteReport: function(settings, suc, err) {
var reportName = encodeURIComponent(settings['name']);
kimchi.requestJSON({
--
1.8.1.4
More information about the Kimchi-devel
mailing list