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

68 lines
1.9 KiB
HTML
Raw Normal View History

2015-11-17 02:12:42 +03:00
<h2 *ng-if="data.params.length"> Parameters </h2>
<div class="params-wrap">
<div *ng-for="#param of data.params" class="param">
<div class="param-name">
<span> {{param.name}} </span>
</div>
<div class="param-info">
<div>
<span class="param-type" [ng-class]="param.type">{{param.type}}</span>
<span *ng-if="param.required" class="param-required">Required</span>
</div>
<div class="param-description" inner-html="{{param.description | marked}}"></div>
</div>
</div>
</div>
<div *ng-if="data.bodyParam">
<h2 *ng-if="data.bodyParam"> Request Body </h2>
<div class="body-param-description" inner-html="{{data.bodyParam.description | marked}}"></div>
<div>
<schema class="body-schema param-type" pointer="{{data.bodyParam.pointer}}/schema">
</schema>
</div>
</div>
<!--
2015-10-21 12:25:51 +03:00
<table class="inline">
2015-11-17 02:12:42 +03:00
<!- No params ->
2015-10-21 12:25:51 +03:00
<tr *ng-if="data.noParams">
<td colspan="3">
<small class="no-params" > No parameters </small>
</td>
</tr>
2015-10-18 12:29:18 +03:00
<thead>
2015-10-18 20:16:40 +03:00
<tr>
<th colspan="3"> Parameters </th>
</tr>
2015-10-21 12:25:51 +03:00
<tr *ng-if="!data.noParams">
2015-10-18 12:29:18 +03:00
<th> Name </th>
<th> Description </th>
2015-10-21 12:20:14 +03:00
<th> Type </th>
2015-10-18 12:29:18 +03:00
</tr>
</thead>
2015-10-18 20:16:40 +03:00
<tbody>
2015-11-17 02:12:42 +03:00
<!- General parameters ->
2015-10-18 20:16:40 +03:00
<tr *ng-for="#param of data.params">
2015-11-17 02:12:42 +03:00
<!-<div class="param">->
2015-10-18 20:16:40 +03:00
<td class="param-name">{{param.name}}</td>
<td class="param-description" inner-html="{{param.description | marked}}"></td>
2015-10-18 20:16:40 +03:00
<td>
2015-10-21 12:20:14 +03:00
<span class="type" [ng-class]="param.type">{{param.type}}</span>
2015-10-18 20:16:40 +03:00
</td>
2015-11-17 02:12:42 +03:00
<!-</div>->
2015-10-18 20:16:40 +03:00
</tr>
2015-11-17 02:12:42 +03:00
<!- in-body parameter ->
2015-10-18 20:16:40 +03:00
<tr class="param body-param" *ng-if="data.bodyParam">
<td class="param-name">{{data.bodyParam.name}}</td>
<td class="param-description" inner-html="{{data.bodyParam.description | marked}}"></td>
2015-10-18 12:29:18 +03:00
<td>
2015-10-18 20:16:40 +03:00
<schema class="body-schema param-type" pointer="{{data.bodyParam.pointer}}/schema">
</schema>
2015-10-18 12:29:18 +03:00
</td>
2015-10-18 20:16:40 +03:00
</tr>
</tbody>
2015-10-18 12:29:18 +03:00
</table>
2015-11-17 02:12:42 +03:00
-->