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

22 lines
735 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-10 16:01:41 +03:00
<div *ng-for="#param of data.params">
<div class="param">
<span class="param-name">{{param.name}}</span>
<span class="param-type" [ng-class]="param.type">{{param.type}}</span>
<span class="param-description">{{param.description}}</span>
</div>
</div>
2015-10-17 21:12:46 +03:00
<!-- in-body parameter -->
2015-10-10 16:01:41 +03:00
<div class="param body-param" *ng-if="data.bodyParam">
<span class="param-name">{{data.bodyParam.name}}</span>
2015-10-17 21:12:46 +03:00
<div class="body-schema">
<schema
[title]="data.bodyParam.type"
[description]="data.bodyParam.description"
pointer="{{data.bodyParam.pointer}}/schema">
</schema>
</div>
2015-10-10 16:01:41 +03:00
</div>