diff options
author | 2016-10-11 00:47:17 -0700 | |
---|---|---|
committer | 2016-10-11 00:47:17 -0700 | |
commit | a81f191130325f58a13f2746e574aa012b34adb9 (patch) | |
tree | bfe06b1219baecbc65c550e74154491add15dba8 /openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/rest.js | |
parent | 194ccb8f1aac1bdac05e8b0da24d0d2f8628a4b4 (diff) |
UI Portal changes GSO-12
Change-Id: Ib72a9c6576acd5786fa01ac049b629fe5ee489ee
Signed-off-by: Seshu-Kumar-M <seshu.kumar.m@huawei.com>
Diffstat (limited to 'openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/rest.js')
-rw-r--r-- | openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/rest.js | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/rest.js b/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/rest.js index a72cbf27..75d61ac3 100644 --- a/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/rest.js +++ b/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/rest.js @@ -115,13 +115,11 @@ $(function () { /*******************************************Get Service**********************************************/
function loadGetServiceData(){
- return JSON.parse('[{"serviceId":"1111","serviceName":"siteToDC","description":"siteToDC","createTime":"xxxxxx","creator":"XXXX","serviceType":"GSO","templateName":"xxxxxx","inputParameters":{"POP-1-0-0.vFW-moc":"xxx","POP-1-0-0.vCPE-moc":"xxx"}},{"serviceId":"2222","serviceName":"siteToDC","description":"siteToDC","createTime":"xxxxxx","creator":"XXXX","serviceType":"GSO","templateName":"xxxxxx","inputParameters":{"POP-1-0-0.vFW-moc":"xxx1","POP-1-0-0.vCPE-moc":"xxx1"}}]');
- // TODO authenticate the url.
- var requestUrl = url + "/openoapi/sdnobrs/v1/topological-links";
+ var requestUrl = url + "/openoapi/inventory/v1/services";
$
.ajax({
- type : "GET",
+ type : "POST",
url : requestUrl,
contentType : "application/json",
success : function(jsonobj) {
@@ -136,10 +134,8 @@ function loadGetServiceData(){ /*********************************************Get Service Details********************************************/
function loadServiceDetails(serviceId){
- return JSON.parse('[{"id":"12345", "name":"sdno"}, {"id":"23456", "name":"gso"},{"id":"12345", "name":"nfvo"}]');
- //return JSON.parse('{"sdno":[{"id":"12345", "name":"SDNO"}], "nfvo":[{"id":"12345", "name":"SDNO"}]}');
- //return JSON.parse('"nfvo":[{"id":"12345", "name":"SDNO"}]}');
- // TODO authenticate the url.
+
+ // TODO re-confirm the latest url.
var requestUrl = url + "/openoapi/lifecyclemgr/v1/services/toposequence/" + serviceId;
$
.ajax({
|