redoc/lib/components/ApiInfo/api-info.html

24 lines
983 B
HTML
Raw Normal View History

<div class="api-info-wrapper">
<h1>{{info.title}} <span class="api-info-version">({{info.version}})</span></h1>
2016-07-28 15:56:29 +03:00
<p>
Download OpenAPI (fka Swagger) specification:
<a class="openapi-button" target="_blank" attr.href='{{specUrl}}'> Download </a>
</p>
2016-03-14 23:27:07 +03:00
<p>
<!-- TODO: create separate components for contact and license ? -->
2016-08-28 21:46:10 +03:00
<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>
2016-03-14 23:27:07 +03:00
</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>
2016-03-14 23:27:07 +03:00
</span>
</p>
<span class="redoc-markdown-block">
<dynamic-ng2-viewer [html]="info['x-redoc-html-description']"></dynamic-ng2-viewer>
</span>
2016-03-14 23:27:07 +03:00
</div>