aboutsummaryrefslogtreecommitdiffstats
path: root/sdc-workflow-designer-ui/src/app/model/workflow/rest-task.ts
diff options
context:
space:
mode:
authorLvbo163 <lv.bo163@zte.com.cn>2018-01-10 15:05:39 +0800
committerLvbo163 <lv.bo163@zte.com.cn>2018-01-10 15:05:39 +0800
commit38dfd59a8b5d05266e5567f79dcf30fd10ef7c54 (patch)
tree043a724663d3324ce80cc546a241898e99796897 /sdc-workflow-designer-ui/src/app/model/workflow/rest-task.ts
parenteb2d1c385e5c3d96e770b776f74ddbde9f2b133f (diff)
split element by type
split elements by type in toolbar Issue-ID: SDC-895 Change-Id: I0254c9c5f938df80942d60ffefe4b8577c788233 Signed-off-by: Lvbo163 <lv.bo163@zte.com.cn>
Diffstat (limited to 'sdc-workflow-designer-ui/src/app/model/workflow/rest-task.ts')
-rw-r--r--sdc-workflow-designer-ui/src/app/model/workflow/rest-task.ts20
1 files changed, 10 insertions, 10 deletions
diff --git a/sdc-workflow-designer-ui/src/app/model/workflow/rest-task.ts b/sdc-workflow-designer-ui/src/app/model/workflow/rest-task.ts
index 2b3045df..12637d01 100644
--- a/sdc-workflow-designer-ui/src/app/model/workflow/rest-task.ts
+++ b/sdc-workflow-designer-ui/src/app/model/workflow/rest-task.ts
@@ -9,17 +9,17 @@
* Contributors:
* ZTE - initial API and implementation and/or initial documentation
*/
+import { SwaggerResponse } from "../swagger";
import { RestParameter } from './rest-parameter';
import { WorkflowNode } from './workflow-node';
-export class RestTask extends WorkflowNode {
- public serviceName: string;
- public serviceVersion: string;
- public url: string;
- public method: string;
- public operationId: string;
- public produces: string[] = [];
- public consumes: string[] = [];
- public parameters: RestParameter[] = [];
- public responses: any[] = [];
+export interface RestTask extends WorkflowNode {
+ restConfigId?: string;
+ path?: string;
+ method?: string;
+ operationId?: string;
+ produces?: string[];
+ consumes?: string[];
+ parameters?: RestParameter[];
+ responses?: SwaggerResponse[];
}