redoc/lib/components/RequestSamples/request-samples.html
2016-01-31 19:38:01 +02:00

11 lines
463 B
HTML

<header *ngIf="data.bodySchemaPtr || data.samples.length"> Request samples </header>
<schema-sample *ngIf="!data.samples.length" [pointer]="data.bodySchemaPtr"> </schema-sample>
<tabs *ngIf="data.samples.length">
<tab tabTitle="json">
<schema-sample [pointer]="data.bodySchemaPtr"> </schema-sample>
</tab>
<tab *ngFor="#sample of data.samples" [tabTitle]="sample.lang">
<pre innerHtml="{{sample.source | prism:sample.lang}}"></pre>
</tab>
</tabs>