2016-07-20 11:07:08 +03:00
|
|
|
<h5 class="param-list-header" *ngIf="params.length"> Parameters </h5>
|
|
|
|
<template ngFor [ngForOf]="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">
|
2016-06-29 18:02:19 +03:00
|
|
|
<span class="param-name-wrap"> {{param.name}} </span>
|
2016-02-23 14:05:59 +03:00
|
|
|
</div>
|
|
|
|
<div class="param-info">
|
|
|
|
<div>
|
2016-11-28 17:15:09 +03:00
|
|
|
<span *ngIf='param.type === "array"' class="param-array-format param-collection-format-{{param.collectionFormat}}">
|
|
|
|
{{param | collectionFormat}}
|
|
|
|
</span>
|
2016-02-23 14:05:59 +03:00
|
|
|
<span class="param-type {{param.type}}" [ngClass]="{'with-hint': param._displayTypeHint}"
|
|
|
|
title="{{param._displayTypeHint}}"> {{param._displayType}} {{param._displayFormat}}</span>
|
2016-07-28 07:24:12 +03:00
|
|
|
<span class="param-range" *ngIf="param._range"> {{param._range}} </span>
|
2016-02-23 14:05:59 +03:00
|
|
|
<span *ngIf="param.required" class="param-required">Required</span>
|
2016-11-01 18:21:32 +03:00
|
|
|
<div class="param-default" *ngIf="param.default != null">
|
|
|
|
<span class="param-default-value">{{param.default | json}}</span>
|
|
|
|
</div>
|
2016-02-23 14:05:59 +03:00
|
|
|
<div *ngIf="param.enum" class="param-enum">
|
2016-11-01 18:21:32 +03:00
|
|
|
<span *ngFor="let enumItem of param.enum" class="param-enum-value {{enumItem.type}}"> {{enumItem.val | json}} </span>
|
2016-02-23 14:05:59 +03:00
|
|
|
</div>
|
2016-11-01 18:21:32 +03:00
|
|
|
<span *ngIf="param.pattern" class="param-pattern">{{param.pattern}}</span>
|
2016-02-06 18:00:31 +03:00
|
|
|
</div>
|
2016-06-22 12:45:03 +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
|
|
|
|
2016-07-20 11:07:08 +03:00
|
|
|
<div *ngIf="bodyParam">
|
|
|
|
<h5 class="param-list-header" *ngIf="bodyParam"> Request Body </h5>
|
2015-11-17 02:12:42 +03:00
|
|
|
|
2016-07-20 11:07:08 +03:00
|
|
|
<div class="body-param-description" [innerHtml]="bodyParam.description | marked"></div>
|
2015-11-17 02:12:42 +03:00
|
|
|
<div>
|
2016-03-01 21:08:02 +03:00
|
|
|
<br>
|
2016-09-01 09:53:42 +03:00
|
|
|
<json-schema-lazy [isRequestSchema]="true" [auto]="true" pointer="{{bodyParam._pointer}}/schema">
|
2016-02-07 17:11:15 +03:00
|
|
|
</json-schema-lazy>
|
2015-11-17 02:12:42 +03:00
|
|
|
</div>
|
|
|
|
</div>
|