summaryrefslogtreecommitdiffstats
path: root/sdc-workflow-designer-ui/src/app/services/workflow-config.service.ts
diff options
context:
space:
mode:
Diffstat (limited to 'sdc-workflow-designer-ui/src/app/services/workflow-config.service.ts')
-rw-r--r--sdc-workflow-designer-ui/src/app/services/workflow-config.service.ts13
1 files changed, 12 insertions, 1 deletions
diff --git a/sdc-workflow-designer-ui/src/app/services/workflow-config.service.ts b/sdc-workflow-designer-ui/src/app/services/workflow-config.service.ts
index d645ebc2..2d2ca00b 100644
--- a/sdc-workflow-designer-ui/src/app/services/workflow-config.service.ts
+++ b/sdc-workflow-designer-ui/src/app/services/workflow-config.service.ts
@@ -13,6 +13,8 @@
import { Injectable } from '@angular/core';
import { WorkflowService } from "./workflow.service";
import { Microservice } from "../model/workflow/microservice";
+import { Observable } from "rxjs/Rx";
+import { HttpService } from "../util/http.service";
/**
* WorkflowConfigService
@@ -20,9 +22,18 @@ import { Microservice } from "../model/workflow/microservice";
*/
@Injectable()
export class WorkflowConfigService {
- constructor(private workflowService: WorkflowService) {}
+ constructor(private httpService: HttpService, private workflowService: WorkflowService) {}
public getMicroservices(): Microservice[] {
return this.workflowService.workflow.configs.microservices;
}
+
+ public loadDynamicInfo(url: string): Observable<any> {
+ const options: any = {
+ headers: {
+ Accept: 'application/json',
+ },
+ };
+ return this.httpService.get(url);
+ }
}