2015-12-14 18:20:40 +03:00
|
|
|
<h2 class="responses-list-header" *ngIf="data.responses.length"> Responses </h2>
|
|
|
|
<zippy *ngFor="#response of data.responses" title="{{response.code}} {{response.description}}"
|
2016-01-24 22:27:15 +03:00
|
|
|
[type]="response.type" [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>
|
2015-12-14 18:20:40 +03:00
|
|
|
<div class="header" *ngFor="#header of response.headers">
|
2015-11-26 01:36:07 +03:00
|
|
|
<div class="header-name"> {{header.name}} </div>
|
|
|
|
<div class="header-type"> {{header.type}} </div>
|
2015-12-14 18:20:40 +03:00
|
|
|
<div class="header-description" innerHtml="{{header.description | marked}}"> </div>
|
2015-11-26 01:36:07 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-11-26 22:21:38 +03:00
|
|
|
<header>
|
|
|
|
Response schema
|
|
|
|
</header>
|
2016-01-24 22:27:15 +03:00
|
|
|
<json-schema *ngIf="response.schema && !enabledLazy" class="schema type" pointer="{{response.pointer}}/schema">
|
|
|
|
</json-schema>
|
|
|
|
<json-schema-lazy #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>
|