redoc/lib/components/ResponsesList/responses-list.html

20 lines
1011 B
HTML
Raw Normal View History

<h2 class="responses-list-header" *ngIf="data.responses.length"> Responses </h2>
2016-04-29 22:57:24 +03:00
<zippy *ngFor="let response of data.responses" title="{{response.code}} {{response.description}}"
[type]="response.type" [empty]="response.empty" (open)="lazySchema.load()">
<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>
<div class="header-type"> {{header.type}} </div>
<div *ngIf="header.default" class="header-default"> Default: {{header.default}} </div>
<div class="header-description" innerHtml="{{header.description | marked}}"> </div>
2015-11-26 01:36:07 +03:00
</div>
</div>
2016-02-16 16:31:12 +03:00
<json-schema *ngIf="response.schema && options.disableLazySchemas" class="schema type" pointer="{{response.pointer}}/schema">
</json-schema>
<json-schema-lazy #lazySchema pointer="{{response.schema ? response.pointer + '/schema' : null}}">
</json-schema-lazy>
2015-11-23 23:57:49 +03:00
</zippy>