2016-07-20 11:07:08 +03:00
|
|
|
<h2 class="responses-list-header" *ngIf="responses.length"> Responses </h2>
|
2016-12-13 09:08:37 +03:00
|
|
|
<zippy *ngFor="let response of responses;trackBy:trackByCode" [title]="response.code + ' ' + response.description | marked"
|
2016-12-14 15:49:02 +03:00
|
|
|
[type]="response.type" [visible]="response.expanded" [empty]="response.empty" (open)="lazySchema.load()">
|
2015-12-14 18:20:40 +03:00
|
|
|
<div *ngIf="response.headers" class="response-headers">
|
2015-11-26 01:36:07 +03:00
|
|
|
<header>
|
|
|
|
Headers
|
|
|
|
</header>
|
2016-04-29 22:57:24 +03:00
|
|
|
<div class="header" *ngFor="let header of response.headers">
|
2015-11-26 01:36:07 +03:00
|
|
|
<div class="header-name"> {{header.name}} </div>
|
2016-07-28 07:24:12 +03:00
|
|
|
<div class="header-type {{header.type}}"> {{header._displayType}} {{header._displayFormat}}
|
|
|
|
<span class="header-range" *ngIf="header._range"> {{header._range}} </span>
|
|
|
|
</div>
|
2016-05-18 22:24:34 +03:00
|
|
|
<div *ngIf="header.default" class="header-default"> Default: {{header.default}} </div>
|
2016-07-28 07:24:12 +03:00
|
|
|
<div *ngIf="header.enum" class="header-enum">
|
|
|
|
<span *ngFor="let enumItem of header.enum" class="enum-value {{enumItem.type}}"> {{enumItem.val | json}} </span>
|
|
|
|
</div>
|
2016-06-22 12:45:03 +03:00
|
|
|
<div class="header-description" [innerHtml]="header.description | marked"> </div>
|
2015-11-26 01:36:07 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-07-10 14:44:59 +03:00
|
|
|
<header *ngIf="response.schema">
|
2016-05-18 22:39:09 +03:00
|
|
|
Response Schema
|
|
|
|
</header>
|
2016-12-14 15:49:02 +03:00
|
|
|
<json-schema-lazy [auto]="response.expanded" #lazySchema pointer="{{response.schema ? response.pointer + '/schema' : null}}">
|
2016-01-24 20:02:02 +03:00
|
|
|
</json-schema-lazy>
|
2015-11-23 23:57:49 +03:00
|
|
|
</zippy>
|