2016-03-02 22:48:55 +03:00
|
|
|
<h5 class="param-list-header" *ngIf="data.params.length"> Parameters </h5>
|
2016-04-29 22:57:24 +03:00
|
|
|
<template ngFor [ngForOf]="data.params" let-paramType="$implicit">
|
2016-03-28 00:54:43 +03:00
|
|
|
<header class="paramType">
|
|
|
|
{{paramType.place}} Parameters
|
|
|
|
<span class="hint--top-right hint--large" [attr.data-hint]="paramType.placeHint">?</span>
|
|
|
|
</header>
|
2016-03-01 21:08:02 +03:00
|
|
|
<br>
|
2016-02-23 14:05:59 +03:00
|
|
|
<div class="params-wrap">
|
2016-04-29 22:57:24 +03:00
|
|
|
<div *ngFor="let param of paramType.params" class="param">
|
2016-02-23 14:05:59 +03:00
|
|
|
<div class="param-name">
|
|
|
|
<span class="param-name-content"> {{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 *ngIf="param.enum" class="param-enum">
|
2016-04-29 22:57:24 +03:00
|
|
|
<span *ngFor="let enumItem of param.enum" class="enum-value {{enumItem.type}}"> {{enumItem.val | json}} </span>
|
2016-02-23 14:05:59 +03:00
|
|
|
</div>
|
2016-02-06 18:00:31 +03:00
|
|
|
</div>
|
2016-02-23 14:05:59 +03:00
|
|
|
<div class="param-description" innerHtml="{{param.description | marked}}"></div>
|
2015-11-22 21:04:18 +03:00
|
|
|
</div>
|
2016-02-23 14:05:59 +03:00
|
|
|
</div>
|
2015-11-17 02:12:42 +03:00
|
|
|
</div>
|
2016-02-23 14:05:59 +03:00
|
|
|
</template>
|
2015-11-17 02:12:42 +03:00
|
|
|
|
2015-12-14 18:20:40 +03:00
|
|
|
<div *ngIf="data.bodyParam">
|
2016-03-02 22:48:55 +03:00
|
|
|
<h5 class="param-list-header" *ngIf="data.bodyParam"> Request Body </h5>
|
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-03-01 21:08:02 +03:00
|
|
|
<br>
|
2016-04-27 22:34:27 +03:00
|
|
|
<json-schema-lazy [skipReadOnly]="true" [auto]="true" pointer="{{data.bodyParam.pointer}}/schema">
|
2016-02-07 17:11:15 +03:00
|
|
|
</json-schema-lazy>
|
2015-11-17 02:12:42 +03:00
|
|
|
</div>
|
|
|
|
</div>
|