support rest task node
[sdc/sdc-workflow-designer.git] / sdc-workflow-designer-ui / src / app / model / workflow / rest-task.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 import { RestParameter } from './rest-parameter';
13 import { WorkflowNode } from './workflow-node';
14
15 export class RestTask extends WorkflowNode {
16     public serviceName: string;
17     public serviceVersion: string;
18     public url: string;
19     public method: string;
20     public operationId: string;
21     public produces: string[] = [];
22     public consumes: string[] = [];
23     public parameters: RestParameter[] = [];
24     public responses: any[] = [];
25 }