d3f419215c97e13d40880fc0d1bc38362096f4f4
[sdc/sdc-workflow-designer.git] /
1 <!--
2 /*******************************************************************************
3  * Copyright (c) 2017 ZTE Corporation.
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * and the Apache License 2.0 which both accompany this distribution,
7  * and are available at http://www.eclipse.org/legal/epl-v10.html
8  * and http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Contributors:
11  *     ZTE - initial API and implementation and/or initial documentation
12  *******************************************************************************/
13 -->
14
15 <div class="form-group row">
16         <label class="col-md-3 form-control-label text-md-right">{{'WORKFLOW.REST_SERVICE' | translate}}</label>
17         <div class="col-md-9">
18                 <select *ngIf="loadSwaggerByMSB" class="form-control" [ngModel]="node.restConfigId" (ngModelChange)="serviceChanged($event)">
19                         <option *ngFor="let restConfig of restService.getRestConfigs()" value="{{restConfig.id}}">{{restConfig.id}}</option>
20                 </select>
21                 <input *ngIf="!loadSwaggerByMSB" class="form-control" [ngModel]="node.restConfigId" disabled />
22         </div>
23 </div>
24
25 <div class="form-group row">
26         <label class="col-md-3 form-control-label text-md-right">{{'WORKFLOW.REST_PATH' | translate}}</label>
27         <div class="col-md-9">
28                 <select *ngIf="loadSwaggerByMSB" class="form-control" [ngModel]="node.path" (ngModelChange)="pathChanged($event)">
29                         <option *ngFor="let interface of restInterfaces" value="{{interface}}">{{interface}}</option>
30                 </select>
31                 <input *ngIf="!loadSwaggerByMSB" class="form-control" [ngModel]="node.path" disabled />
32         </div>
33 </div>
34
35 <div class="form-group row">
36         <label class="col-md-3 form-control-label text-md-right">{{'WORKFLOW.REST_METHOD' | translate}}</label>
37         <div class="col-md-9">
38                 <select *ngIf="loadSwaggerByMSB" class="form-control" [ngModel]="node.method" (ngModelChange)="methodChanged($event)">
39                         <option *ngFor="let operation of restOperations" value="{{operation}}">{{operation}}</option>
40                 </select>
41                 <input *ngIf="!loadSwaggerByMSB" class="form-control" [ngModel]="node.method" disabled />
42         </div>
43 </div>
44 <hr>
45
46 <div *ngIf="loadSwaggerByMSB">
47         <wfm-node-parameters [restConfigId]="node.restConfigId" [swaggerInput]="node.parameters" [swaggerOutput]="node.responses"
48                 [planItems]="planItems"></wfm-node-parameters>
49 </div>
50
51 <div *ngIf="!loadSwaggerByMSB">
52         <wfm-rest-parameters [dataTypeInput]="node.parameters" [dataTypeOutput]="dataTypeOutput" [definitions]="definitions"
53                 [planItems]="planItems"></wfm-rest-parameters>
54 </div>