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=f9df38c370036657ede9c216a9928051ed998475;hb=b244a344777f416ad9b5ff09d1a8ad5f5517f2bf;hp=13df94c24336376a844e09c0923db3ba026bb265;hpb=fa50e55b6e8977ad0a6a28096fe58fb54924ca2b;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 13df94c2..f9df38c3 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 @@ -29,23 +29,33 @@ export class AppMgrService { // injects to variable httpClient } - private basePath = 'api/appmgr/xapps'; + private basePath = 'api/appmgr'; getDeployable(): Observable { - return this.httpClient.get(this.basePath + '/list'); + return this.httpClient.get(this.basePath + '/xapps/list'); } getDeployed(): Observable { - return this.httpClient.get(this.basePath); + return this.httpClient.get(this.basePath + '/xapps'); } deployXapp(name: string): Observable> { const xappInfo: XMXappInfo = { name: name }; - return this.httpClient.post(this.basePath, xappInfo, { observe: 'response' }); + return this.httpClient.post((this.basePath + '/xapps'), xappInfo, { observe: 'response' }); } undeployXapp(name: string): Observable> { - return this.httpClient.delete((this.basePath + '/' + name), { observe: 'response' }); + return this.httpClient.delete((this.basePath + '/xapps'+ '/' + name), { observe: 'response' }); } + getConfig(): Observable{ + return this.httpClient.get("/assets/mockdata/config.json"); + //return this.httpClient.get((this.basePath + '/config')); + } + + putConfig(config: any): Observable> { + return this.httpClient.put((this.basePath + '/config' ), config, { observe: 'response' }); + } + + }