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