aboutsummaryrefslogtreecommitdiffstats
path: root/openo-portal/portal-lifecyclemgr
diff options
context:
space:
mode:
authorLuji7 <lu.ji3@zte.com.cn>2016-10-19 17:52:42 +0800
committerLuji7 <lu.ji3@zte.com.cn>2016-10-19 17:52:42 +0800
commitcddbebf090d52a234e536bef5f7e6dbd6ddcc9e0 (patch)
tree10f329c30822381f6b708cce5aba9777aa7bc620 /openo-portal/portal-lifecyclemgr
parenta42e5251bed0f92a3a429dfe0e7805bf7d271515 (diff)
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 <lu.ji3@zte.com.cn>
Diffstat (limited to 'openo-portal/portal-lifecyclemgr')
-rw-r--r--openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js6
1 files changed, 3 insertions, 3 deletions
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",