mirror of
				https://github.com/Redocly/redoc.git
				synced 2025-10-31 07:47:29 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			768 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			768 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <header *ngIf="data.schemaPointer || data.samples.length"> Request samples </header>
 | |
| <schema-sample *ngIf="!data.samples.length" [skipReadOnly]="true" [pointer]="data.schemaPointer"> </schema-sample>
 | |
| <tabs *ngIf="data.samples.length" [selected] = "selectedLang" (change)=changeLangNotify($event)>
 | |
|   <tab tabTitle="JSON">
 | |
|     <schema-sample [pointer]="data.schemaPointer" [skipReadOnly]="true"> </schema-sample>
 | |
|   </tab>
 | |
|   <tab *ngFor="let sample of data.samples" [tabTitle]="sample.lang">
 | |
|     <div class="code-sample">
 | |
|       <div class="action-buttons">
 | |
|         <span copy-button [copyText]="sample.source" class="hint--top hint--inversed"> <a>Copy</a> </span>
 | |
|       </div>
 | |
|       <pre [innerHtml]="sample.source | prism:sample.lang"></pre>
 | |
|     </div>
 | |
|   </tab>
 | |
| </tabs>
 |