[Kimchi-devel] [PATCH v5 06/10] Debug Report Rename UI: Add API in kimchi.api.js

Aline Manera alinefm at linux.vnet.ibm.com
Sun Jul 13 16:55:36 UTC 2014


Reviewed-by: Aline Manera <alinefm at linux.vnet.ibm.com>

On 07/11/2014 06:17 AM, Hongliang Wang wrote:
> 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 c28a080..021be63 100644
> --- a/ui/js/src/kimchi.api.js
> +++ b/ui/js/src/kimchi.api.js
> @@ -700,6 +700,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({
>




More information about the Kimchi-devel mailing list