support rest task node
[sdc/sdc-workflow-designer.git] / sdc-workflow-designer-ui / src / app / app.module.ts
1 /**
2  * Copyright (c) 2017 ZTE Corporation.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * and the Apache License 2.0 which both accompany this distribution,
6  * and are available at http://www.eclipse.org/legal/epl-v10.html
7  * and http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Contributors:
10  *     ZTE - initial API and implementation and/or initial documentation
11  */
12
13 import { BrowserModule } from '@angular/platform-browser';
14 import { NgModule } from '@angular/core';
15
16 import { AppComponent } from './app.component';
17 import { JsPlumbService } from "./services/jsplumb.service";
18 import { NodeComponent } from "./components/node/node.component";
19 import { ToolbarComponent } from "./components/toolbar/toolbar.component";
20 import { WorkflowService } from "./services/workflow.service";
21 import { DataAccessService } from "./services/data-access/data-access.service";
22 import { HttpService } from "./util/http.service";
23 import { SharedModule } from "./shared/shared.module";
24 import { InMemoryWebApiModule } from "angular-in-memory-web-api";
25 import { InMemoryDataService } from "./services/data-access/in-memory-data.service";
26 import { HttpModule } from "@angular/http";
27 import { RouterModule } from "@angular/router";
28 import { BroadcastService } from "./services/broadcast.service";
29 import { PropertiesComponent } from "./components/property/properties.component";
30 import { CanvasComponent } from "./components/canvas/canvas.component";
31 import { StartEventParametersComponent } from "./components/property/start-event-parameters/start-event-parameters.component";
32 import { ParameterComponent } from "./components/parameter/parameter.component";
33 import { MenuComponent } from "./components/menu/menu.component";
34 import { MicroserviceDetailComponent } from "./components/menu/microservice/microservice-detail/microservice-detail.component";
35 import { MicroserviceComponent } from "./components/menu/microservice/microservice.component";
36 import { MicroserviceListComponent } from "./components/menu/microservice/microservice-list/microservice-list.component";
37 import { ModalModule } from "ngx-bootstrap/modal";
38 import { WorkflowConfigService } from "./services/workflow-config.service";
39 import { RestTaskComponent } from "./components/property/rest-task/rest-task.component";
40
41 @NgModule({
42     declarations: [
43         AppComponent,
44         CanvasComponent,
45         MenuComponent,
46         MicroserviceComponent,
47         MicroserviceDetailComponent,
48         MicroserviceListComponent,
49         NodeComponent,
50         ParameterComponent,
51         PropertiesComponent,
52         RestTaskComponent,
53         StartEventParametersComponent,
54         ToolbarComponent,
55     ],
56     imports: [
57         BrowserModule,
58         HttpModule,
59         InMemoryWebApiModule.forRoot(InMemoryDataService),
60         ModalModule.forRoot(),
61         RouterModule.forRoot([]),
62         SharedModule,
63     ],
64     providers: [
65         BroadcastService,
66         DataAccessService,
67         HttpService,
68         JsPlumbService,
69         WorkflowConfigService,
70         WorkflowService
71     ],
72     bootstrap: [AppComponent]
73 })
74 export class AppModule { }