RIC dynamic config screen for each xApp
[portal/ric-dashboard.git] / webapp-frontend / src / app / services / app-mgr / app-mgr.service.ts
index 13df94c..33dd1cb 100644 (file)
@@ -48,4 +48,14 @@ export class AppMgrService {
     return this.httpClient.delete((this.basePath + '/' + name), { observe: 'response' });
   }
 
+  getConfig(): Observable<any[]>{
+    return this.httpClient.get<any[]>("/assets/mockdata/config.json");
+    //return this.httpClient.get<any[]>((this.basePath + '/config'));
+  }
+
+  putConfig(config: any): Observable<HttpResponse<Object>> {
+    return this.httpClient.post((this.basePath + '/config' ), config, { observe: 'response' });
+  }
+
+
 }