mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-23 17:13:44 +03:00
27 lines
1001 B
HTML
27 lines
1001 B
HTML
<h2 class="param-list-header" *ngIf="data.params.length"> Parameters </h2>
|
|
<div class="params-wrap">
|
|
<div *ngFor="#param of data.params" class="param">
|
|
<div class="param-name">
|
|
<span> {{param.name}} </span>
|
|
</div>
|
|
<div class="param-info">
|
|
<div>
|
|
<span class="param-type {{param.type}}" [ngClass]="{'with-hint': param._displayTypeHint}"
|
|
title="{{param._displayTypeHint}}"> {{param._displayType}} {{param._displayFormat}}</span>
|
|
<span *ngIf="param.required" class="param-required">Required</span>
|
|
</div>
|
|
<div class="param-description" innerHtml="{{param.description | marked}}"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div *ngIf="data.bodyParam">
|
|
<h2 class="param-list-header" *ngIf="data.bodyParam"> Request Body </h2>
|
|
|
|
<div class="body-param-description" innerHtml="{{data.bodyParam.description | marked}}"></div>
|
|
<div>
|
|
<json-schema pointer="{{data.bodyParam.pointer}}/schema">
|
|
</json-schema>
|
|
</div>
|
|
</div>
|