X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=webapp-frontend%2Fsrc%2Fapp%2Fservices%2Fapp-mgr%2Fapp-mgr.service.ts;h=13df94c24336376a844e09c0923db3ba026bb265;hb=bf91f764c67001c4cad28075a38fd9196744c041;hp=10683aefa8260b59de9ada7939387ad8b038bd1f;hpb=2d98ad2e9f8a0d40bc2b3e3e1fe8b5f32ab97b66;p=portal%2Fric-dashboard.git diff --git a/webapp-frontend/src/app/services/app-mgr/app-mgr.service.ts b/webapp-frontend/src/app/services/app-mgr/app-mgr.service.ts index 10683aef..13df94c2 100644 --- a/webapp-frontend/src/app/services/app-mgr/app-mgr.service.ts +++ b/webapp-frontend/src/app/services/app-mgr/app-mgr.service.ts @@ -18,7 +18,7 @@ * ========================LICENSE_END=================================== */ import { Injectable } from '@angular/core'; -import { HttpClient } from '@angular/common/http'; +import { HttpClient, HttpResponse } from '@angular/common/http'; import { Observable } from 'rxjs'; import { XMXappInfo, XMDeployableApp, XMDeployedApp } from '../../interfaces/app-mgr.types'; @@ -39,12 +39,12 @@ export class AppMgrService { return this.httpClient.get(this.basePath); } - deployXapp(name: string) { + deployXapp(name: string): Observable> { const xappInfo: XMXappInfo = { name: name }; return this.httpClient.post(this.basePath, xappInfo, { observe: 'response' }); } - undeployXapp(name: string) { + undeployXapp(name: string): Observable> { return this.httpClient.delete((this.basePath + '/' + name), { observe: 'response' }); }