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