summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/views/services/sotn-management/manage-service
diff options
context:
space:
mode:
authorphani.y <yellela.nagaphanindra@huawei.com>2020-03-25 15:42:53 +0530
committeryellela nagaphanindra <yellela.nagaphanindra@huawei.com>2020-03-25 11:01:03 +0000
commitdba6524875ebb7c0835d4eace5bc27c03763d4a1 (patch)
tree0974b6746f5f4fce7d06c5310373c178abd93974 /usecaseui-portal/src/app/views/services/sotn-management/manage-service
parent5d6c30fdbfa3d4f15b702652c48107b413a73fff (diff)
Service Topology Changes3.0.1
Issue-ID: USECASEUI-419 Signed-off-by: phani.y <yellela.nagaphanindra@huawei.com> Change-Id: I4f2d8a5a6309de92acd9384d499a285306036ebf
Diffstat (limited to 'usecaseui-portal/src/app/views/services/sotn-management/manage-service')
-rw-r--r--usecaseui-portal/src/app/views/services/sotn-management/manage-service/manage-service.component.ts30
1 files changed, 25 insertions, 5 deletions
diff --git a/usecaseui-portal/src/app/views/services/sotn-management/manage-service/manage-service.component.ts b/usecaseui-portal/src/app/views/services/sotn-management/manage-service/manage-service.component.ts
index 098eedd2..16aee4e7 100644
--- a/usecaseui-portal/src/app/views/services/sotn-management/manage-service/manage-service.component.ts
+++ b/usecaseui-portal/src/app/views/services/sotn-management/manage-service/manage-service.component.ts
@@ -34,8 +34,13 @@ export class ManageServiceComponent implements OnInit {
//Get SubscriptionType
getSubscribeTypes() {
+ let httpOptions = {
+ headers: new HttpHeaders({
+ 'Content-Type': 'application/json'
+ })
+ };
let url = this.baseUrl + "/uui-lcm/customers/service-subscriptions";
- this.http.get<any>(url, {}).subscribe((data) => {
+ this.http.get<any>(url, httpOptions).subscribe((data) => {
this.serviceSubscriptionList = data.subscriptions;
}, (err) => {
console.log(err);
@@ -44,10 +49,15 @@ export class ManageServiceComponent implements OnInit {
//Get subscription instanceID by calling With Subscription Type
getServiceInstanceList(subscriptionType) {
+ let httpOptions = {
+ headers: new HttpHeaders({
+ 'Content-Type': 'application/json'
+ })
+ };
this.serviceInstanceList = [];
this.selectedServiceInstance="";
let url = this.baseUrl + "/uui-lcm/Sotnservices/ServiceInstances/"+subscriptionType;
- this.http.get<any>(url,{}).subscribe((data) => {
+ this.http.get<any>(url,httpOptions).subscribe((data) => {
this.serviceInstanceList = data.serviceInstanceList;
}, (err) => {
console.log(err);
@@ -56,8 +66,12 @@ export class ManageServiceComponent implements OnInit {
deleteSelectedService() {
let url = this.baseUrl + "/uui-lcm/Sotnservices/servicesubscription/"+this.selectedSubscriptionType+'/serviceinstance/'+this.selectedServiceInstance;
-
- this.http.delete<any>(url,{}).subscribe((data) => {
+ let httpOptions = {
+ headers: new HttpHeaders({
+ 'Content-Type': 'application/json'
+ })
+ };
+ this.http.delete<any>(url,httpOptions).subscribe((data) => {
this.serviceInstanceList = [];
this.selectedServiceInstance = "";
this.getServiceInstanceList(this.selectedSubscriptionType);
@@ -67,11 +81,17 @@ export class ManageServiceComponent implements OnInit {
}
+
getSubscribedSites() {
console.log("on change");
+ let httpOptions = {
+ headers: new HttpHeaders({
+ 'Content-Type': 'application/json'
+ })
+ };
if (this.selectedServiceInstance) {
let url = this.baseUrl + "/uui-lcm/Sotnservices/servicesubscription/"+this.selectedSubscriptionType+'/serviceinstance/'+this.selectedServiceInstance;
- this.http.get<any>(url, {}).subscribe((data) => {
+ this.http.get<any>(url, httpOptions).subscribe((data) => {
this.assignData(data, false);
}, (err) => {
console.log(err);