X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=example-apps%2FROBO%2FRoboUI%2Fsrc%2Fapp%2Frobo.service.ts;fp=example-apps%2FROBO%2FRoboUI%2Fsrc%2Fapp%2Frobo.service.ts;h=b74e7b7a5d2bea105408d7c3bef4da0a6dab2fcf;hb=8cb1b78903bb22e22b2a9a887a1070530b550a05;hp=53aaeb62f9776fbdd426f0ed8ced829293448106;hpb=5b9f456c977f69840fc9470b304c6360adc2d971;p=ealt-edge.git diff --git a/example-apps/ROBO/RoboUI/src/app/robo.service.ts b/example-apps/ROBO/RoboUI/src/app/robo.service.ts index 53aaeb6..b74e7b7 100644 --- a/example-apps/ROBO/RoboUI/src/app/robo.service.ts +++ b/example-apps/ROBO/RoboUI/src/app/robo.service.ts @@ -13,24 +13,32 @@ import { cameraData, camerainfo, cameraDetails, monitorDetails, monitorinfo, cam export class RoboService { private baseUrl = 'http://localhost:30091'; + private inventoryBaseUrl = 'http://localhost:30092'; private postCameraDetailsUrl = this.inventoryBaseUrl + '/v1/monitor/cameras' private cameraDetailsUrl = this.inventoryBaseUrl + '/v1/monitor/cameras' + private cameraDetails_url = './../assets/data/sample.json' + + private monitorDetails_url = './../assets/data/sample.json' private monitorDetailsUrl = this.inventoryBaseUrl + '/v1/inventry/table' + private monitorImageUrl = this.inventoryBaseUrl + '/v1/inventry/image' + private triggerObjUrl = this.inventoryBaseUrl + '/v1/monitor/cameras/' + private appsPvcsDetailsUrl = this.baseUrl + '/v1/robo/apps-pvcs' + private appsPvcsDetails_url = './../assets/data/appspvc.json' + private backupRestoreDetailsUrl = this.baseUrl + '/v1/robo/backup-restore' + + //private backupRestoreDetails_url = './../assets/data/backuprestore.json' + private postBackupDetailsUrl = this.baseUrl + '/v1/robo/backup' - private postRestoreDetailsUrl = this.baseUrl + '/v1/robo/restore' - private disasterUrl = this.baseUrl + '/v1/robo/disaster' - private cameraDetails_url = './../assets/data/camera.json' - private backupRestoreDetails_url = './../assets/data/backuprestore.json' - private appsPvcsDetails_url = './../assets/data/appspvc.json' - private monitorDetails_url = './../assets/data/inventory.json' + private postRestoreDetailsUrl = this.baseUrl + '/v1/robo/restore' + private disasterUrl = this.baseUrl + '/v1/robo/disaster' constructor(private http:HttpClient) { } @@ -57,9 +65,9 @@ export class RoboService { return this.http.get(this.cameraDetailsUrl); } - getMonitorInfo(): Observable { + getMonitorInfo(): Observable { debugger; - return this.http.get(this.monitorDetailsUrl); + return this.http.get(this.monitorDetailsUrl); } getMonitorImage(): Observable { @@ -72,6 +80,8 @@ export class RoboService { console.log(data); debugger; this.triggerObjUrl = this.triggerObjUrl + data; + debugger; + console.log(this.triggerObjUrl); return this.http.get(this.triggerObjUrl) } @@ -98,4 +108,4 @@ export class RoboService { debugger; return this.http.post(this.postRestoreDetailsUrl, data) } -} \ No newline at end of file +}