From 80c5f95a92fa087be0a329d795b579a372f9966e Mon Sep 17 00:00:00 2001 From: Luji7 Date: Wed, 19 Oct 2016 17:52:42 +0800 Subject: GSO-26 Fix the wrong url sent to service gateway. Modify the codes for deleting service to be consistent with the api. Change-Id: If9242f8c956d5e93f49c4359a959343ed34cfefb Signed-off-by: Luji7 (cherry picked from commit cddbebf090d52a234e536bef5f7e6dbd6ddcc9e0) --- .../portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'openo-portal/portal-lifecyclemgr') diff --git a/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js b/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js index 30231fca..37cb05f3 100644 --- a/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js +++ b/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js @@ -357,7 +357,7 @@ function formatDate(date) { function deleteNe(rowId, row) { var instanceId = row.serviceId; var serviceType = row.serviceType; - var gatewayService = '/openoapi/servicegateway/v1/services'; + var gatewayService = '/openoapi/servicegateway/v1/services/' + instanceId + '/terminate'; var remove = function () { $('#sai').bootstrapTable('remove', {field: 'serviceId', values: [instanceId]}); }; @@ -404,7 +404,7 @@ function deleteNetworkServiceInstance(gatewayService, nsUri, instanceId) { 'gatewayUri': instanceUri }; return $.ajax({ - type: "DELETE", + type: "POST", url: gatewayService, contentType: "application/json", dataType: "json", @@ -423,7 +423,7 @@ function terminateNetworkServiceInstance(gatewayService, nsUri, instanceId) { 'gatewayUri': nsTerminateUri }; return $.ajax({ - type: "DELETE", + type: "POST", url: gatewayService, contentType: "application/json", dataType: "json", -- cgit 1.2.3-korg