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

31 lines
930 B
HTML
Raw Normal View History

2015-10-10 16:01:41 +03:00
<h4> Parameters </h4>
<small class="no-params" *ng-if="data.noParams"> No parameters </small>
2015-10-17 21:12:46 +03:00
<!-- General parameters -->
2015-10-18 12:29:18 +03:00
<table *ng-if="!data.noParams">
<thead>
<tr>
<th> Name </th>
<th> Type </th>
<th> Description </th>
</tr>
</thead>
<tr *ng-for="#param of data.params">
<!--<div class="param">-->
<td class="param-name">{{param.name}}</td>
<td>
<span class="param-type" [ng-class]="param.type">{{param.type}}</span>
</td>
<td class="param-description">{{param.description}}</td>
<!--</div>-->
</tr>
<!-- in-body parameter -->
<tr class="param body-param" *ng-if="data.bodyParam">
<td class="param-name">{{data.bodyParam.name}}</td>
<td>
<schema class="body-schema param-type" pointer="{{data.bodyParam.pointer}}/schema">
</schema>
</td>
<td class="param-description">{{data.bodyParam.description}}</td>
</tr>
</table>