mirror of
				https://github.com/Redocly/redoc.git
				synced 2025-11-04 09:47:31 +03:00 
			
		
		
		
	Add responses samples to method
This commit is contained in:
		
							parent
							
								
									258a64daf8
								
							
						
					
					
						commit
						d6defae7e7
					
				| 
						 | 
				
			
			@ -33,13 +33,8 @@ h3 > span {
 | 
			
		|||
  width: 40%;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.samples header {
 | 
			
		||||
  padding: 10px 20px;
 | 
			
		||||
  font-size: 20px;
 | 
			
		||||
  background-color: #231416;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.samples .snippet {
 | 
			
		||||
responses-samples {
 | 
			
		||||
  display: block;
 | 
			
		||||
  padding: 10px 20px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -14,9 +14,6 @@
 | 
			
		|||
    <responses-list pointer="{{pointer}}/responses"> </responses-list>
 | 
			
		||||
  </div>
 | 
			
		||||
  <div class="samples">
 | 
			
		||||
    <header> Response sample </header>
 | 
			
		||||
    <div class="snippet">
 | 
			
		||||
      <schema-sample pointer="{{pointer}}/responses/200/schema"> <schema-sample>
 | 
			
		||||
    </div>
 | 
			
		||||
    <responses-samples pointer="{{pointer}}/responses"> </responses-samples>
 | 
			
		||||
  </div>
 | 
			
		||||
<div>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,13 +4,13 @@ import {JsonPointer} from '../../utils/JsonPointer';
 | 
			
		|||
import {RedocComponent, BaseComponent} from '../base';
 | 
			
		||||
import {ParamsList} from '../ParamsList/params-list';
 | 
			
		||||
import {ResponsesList} from '../ResponsesList/responses-list';
 | 
			
		||||
import {SchemaSample} from '../SchemaSample/schema-sample';
 | 
			
		||||
import {ResponsesSamples} from '../ResponsesSamples/responses-samples';
 | 
			
		||||
 | 
			
		||||
@RedocComponent({
 | 
			
		||||
  selector: 'method',
 | 
			
		||||
  templateUrl: './lib/components/Method/method.html',
 | 
			
		||||
  styleUrls: ['./lib/components/Method/method.css'],
 | 
			
		||||
  directives: [ParamsList, ResponsesList, SchemaSample]
 | 
			
		||||
  directives: [ParamsList, ResponsesList, ResponsesSamples]
 | 
			
		||||
})
 | 
			
		||||
export class Method extends BaseComponent {
 | 
			
		||||
  constructor(schemaMgr) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -11,7 +11,7 @@ method {
 | 
			
		|||
 | 
			
		||||
.methods:before {
 | 
			
		||||
  content: "";
 | 
			
		||||
  background: rgb(64, 33, 37);
 | 
			
		||||
  background: #48040D;
 | 
			
		||||
  height: 100%;
 | 
			
		||||
  width: 40%;
 | 
			
		||||
  top: 0;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user