Update ANR API to version 0.0.5
[portal/ric-dashboard.git] / webapp-frontend / src / app / services / signal / signal.service.ts
index 4b1024a..45a4dc8 100644 (file)
  */
 import { Injectable } from '@angular/core';
 import { HttpClient } from '@angular/common/http';
-import { Observable } from 'rxjs';
 
 @Injectable()
 export class SignalService {
   
-  constructor(private http: HttpClient) {
+  constructor(private httpClient: HttpClient) {
+    // injects to variable httpClient
   }
 
   getAll() {
-    return this.http.get('api/e2mgr/setup');
+    return this.httpClient.get('api/e2mgr/setup');
   }
 
   x2Setup(req) {
-    return this.http.post('api/e2mgr/x2Setup', req);
+    return this.httpClient.post('api/e2mgr/x2Setup', req);
   }
 
   endcSetup(req) {
-    return this.http.post('api/e2mgr/endcSetup', req);
+    return this.httpClient.post('api/e2mgr/endcSetup', req);
   }
 
 }