mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-11 11:26:37 +03:00
22 lines
896 B
HTML
22 lines
896 B
HTML
<div>
|
|
<h1 class="api-info-header">{{info.title}} ({{info.version}})</h1>
|
|
<p>
|
|
Download OpenAPI (fka Swagger) specification:
|
|
<a class="openapi-button" target="_blank" attr.href='{{specUrl}}'> Download </a>
|
|
</p>
|
|
<p *ngIf="info.description" [innerHtml]="info['x-redoc-html-description'] | safe"> </p>
|
|
<p>
|
|
<!-- TODO: create separate components for contact and license ? -->
|
|
<span *ngIf="info.contact"> Contact:
|
|
<a *ngIf="info.contact.url" href="{{info.contact.url}}">
|
|
{{info.contact.name || info.contact.url}}</a>
|
|
<a *ngIf="info.contact.email" href="mailto:{{info.contact.email}}">
|
|
{{info.contact.email}}</a>
|
|
</span>
|
|
<span *ngIf="info.license"> License:
|
|
<a *ngIf="info.license.url" href="{{info.license.url}}"> {{info.license.name}} </a>
|
|
<span *ngIf="!info.license.url"> {{info.license.name}} </span>
|
|
</span>
|
|
</p>
|
|
</div>
|