redoc/lib/components/ParamsList/params-list.html

51 lines
2.3 KiB
HTML
Raw Normal View History

<h5 class="param-list-header" *ngIf="params.length"> Parameters </h5>
2017-03-15 18:50:10 +03:00
<ng-template ngFor [ngForOf]="params" let-paramType="$implicit">
<header class="paramType">
{{paramType.place}} Parameters
<span class="hint--top-right hint--large" [attr.data-hint]="paramType.placeHint">?</span>
</header>
<div class="params-wrap">
2016-04-29 22:57:24 +03:00
<div *ngFor="let param of paramType.params" class="param">
<div class="param-name">
<span class="param-name-wrap"> {{param.name}} </span>
</div>
<div class="param-info">
<div>
<span *ngIf='param.type === "array"'
class="param-array-format param-collection-format-{{param.collectionFormat}}">
2016-11-28 17:15:09 +03:00
{{param | collectionFormat}}
</span>
<span class="param-type {{param.type}}" [ngClass]="{'with-hint': param._displayTypeHint}"
title="{{param._displayTypeHint}}"> {{param._displayType}} {{param._displayFormat}}</span>
<span class="param-range" *ngIf="param._range"> {{param._range}} </span>
<span *ngIf="param.required" class="param-required">Required</span>
2016-11-01 18:21:32 +03:00
<div class="param-default" *ngIf="param.default != null">
<span class="param-default-value">{{param.default | json}}</span>
</div>
<div *ngIf="param.enum || param._enumItem" class="param-enum">
<span *ngFor="let enumItem of param.enum" class="param-enum-value {{enumItem.type}}">
{{enumItem.val | json}}
</span>
<span *ngIf="param._enumItem" class="param-enum-value {{param._enumItem.type}}">
{{param._enumItem.val | json}}
</span>
</div>
2016-11-01 18:21:32 +03:00
<span *ngIf="param.pattern" class="param-pattern">{{param.pattern}}</span>
2016-02-06 18:00:31 +03:00
</div>
2016-06-22 12:45:03 +03:00
<div class="param-description" [innerHtml]="param.description | marked"></div>
2015-11-22 21:04:18 +03:00
</div>
</div>
2015-11-17 02:12:42 +03:00
</div>
2017-03-15 18:50:10 +03:00
</ng-template>
2015-11-17 02:12:42 +03:00
<div *ngIf="bodyParam">
<h5 class="param-list-header" *ngIf="bodyParam"> Request Body </h5>
2015-11-17 02:12:42 +03:00
<div class="body-param-description" [innerHtml]="bodyParam.description | marked"></div>
2015-11-17 02:12:42 +03:00
<div>
<br>
2016-09-01 09:53:42 +03:00
<json-schema-lazy [isRequestSchema]="true" [auto]="true" pointer="{{bodyParam._pointer}}/schema">
2016-02-07 17:11:15 +03:00
</json-schema-lazy>
2015-11-17 02:12:42 +03:00
</div>
</div>