2015-12-14 18:20:40 +03:00
|
|
|
<h2 class="param-list-header" *ngIf="data.params.length"> Parameters </h2>
|
2015-11-17 02:12:42 +03:00
|
|
|
<div class="params-wrap">
|
2015-12-14 18:20:40 +03:00
|
|
|
<div *ngFor="#param of data.params" class="param">
|
2015-11-22 21:04:18 +03:00
|
|
|
<div class="param-name">
|
2016-02-06 19:02:10 +03:00
|
|
|
<span class="param-name-content"> {{param.name}} </span>
|
2015-11-22 21:04:18 +03:00
|
|
|
</div>
|
|
|
|
<div class="param-info">
|
|
|
|
<div>
|
2016-02-04 12:49:00 +03:00
|
|
|
<span class="param-type {{param.type}}" [ngClass]="{'with-hint': param._displayTypeHint}"
|
|
|
|
title="{{param._displayTypeHint}}"> {{param._displayType}} {{param._displayFormat}}</span>
|
2015-12-14 18:20:40 +03:00
|
|
|
<span *ngIf="param.required" class="param-required">Required</span>
|
2016-02-06 18:00:31 +03:00
|
|
|
<div *ngIf="param.enum" class="param-enum">
|
|
|
|
<span *ngFor="#enumItem of param.enum" class="enum-value {{enumItem.type}}"> {{enumItem.val | json}} </span>
|
|
|
|
</div>
|
2015-11-22 21:04:18 +03:00
|
|
|
</div>
|
2015-12-14 18:20:40 +03:00
|
|
|
<div class="param-description" innerHtml="{{param.description | marked}}"></div>
|
2015-11-17 02:12:42 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2015-12-14 18:20:40 +03:00
|
|
|
<div *ngIf="data.bodyParam">
|
|
|
|
<h2 class="param-list-header" *ngIf="data.bodyParam"> Request Body </h2>
|
2015-11-17 02:12:42 +03:00
|
|
|
|
2015-12-14 18:20:40 +03:00
|
|
|
<div class="body-param-description" innerHtml="{{data.bodyParam.description | marked}}"></div>
|
2015-11-17 02:12:42 +03:00
|
|
|
<div>
|
2016-02-07 17:11:15 +03:00
|
|
|
<json-schema-lazy [auto]="true" pointer="{{data.bodyParam.pointer}}/schema">
|
|
|
|
</json-schema-lazy>
|
2015-11-17 02:12:42 +03:00
|
|
|
</div>
|
|
|
|
</div>
|