redoc/lib/components/Method/method.html
2016-02-07 16:10:32 +02:00

29 lines
1.1 KiB
HTML

<div class="method">
<div class="method-content">
<h2 class="method-header sharable-header">
<a class="share-link" href="#{{data.methodAnchor}}"></a>{{data.methodInfo.summary}}
</h2>
<h3 class="method-endpoint">
<span class="http-method" [ngClass]="data.httpMethod">{{data.httpMethod}}</span>
<span class="api-url">{{data.apiUrl}}</span> <span class="path">{{data.path}}</span>
</h3>
<div class="method-tags" *ngIf="data.methodInfo.tags.length">
<a *ngFor="#tag of data.methodInfo.tags" attr.href="#{{tag}}"> {{tag}} </a>
</div>
<p *ngIf="data.methodInfo.description" class="method-description"
innerHtml="{{data.methodInfo.description | marked}}">
</p>
<params-list pointer="{{pointer}}/parameters"> </params-list>
<responses-list pointer="{{pointer}}/responses"> </responses-list>
</div>
<div class="method-samples">
<div *ngIf="data.bodyParam">
<request-samples [pointer]="pointer" [bodySchemaPtr]="data.bodyParam._pointer">
</request-samples>
</div>
<div>
<responses-samples pointer="{{pointer}}/responses"> </responses-samples>
</div>
</div>
<div>