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
11 * ZTE - initial API and implementation and/or initial documentation
12 *******************************************************************************/
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>
21 <input *ngIf="!loadSwaggerByMSB" class="form-control" [ngModel]="node.restConfigId" disabled />
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>
31 <input *ngIf="!loadSwaggerByMSB" class="form-control" [ngModel]="node.path" disabled />
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>
41 <input *ngIf="!loadSwaggerByMSB" class="form-control" [ngModel]="node.method" disabled />
46 <div *ngIf="loadSwaggerByMSB">
47 <wfm-node-parameters [restConfigId]="node.restConfigId" [swaggerInput]="node.parameters" [swaggerOutput]="node.responses"
48 [planItems]="planItems"></wfm-node-parameters>
51 <div *ngIf="!loadSwaggerByMSB">
52 <wfm-rest-parameters [dataTypeInput]="node.parameters" [dataTypeOutput]="dataTypeOutput" [definitions]="definitions"
53 [planItems]="planItems"></wfm-rest-parameters>