2016-11-01 18:00:38 +03:00
|
|
|
<div class="api-info-wrapper">
|
2016-11-28 17:18:54 +03:00
|
|
|
<h1>{{info.title}} <span class="api-info-version">({{info.version}})</span></h1>
|
2018-02-16 13:45:24 +03:00
|
|
|
<p class="download-openapi" *ngIf="specUrl && !hideDownloadButton">
|
2017-06-02 09:41:59 +03:00
|
|
|
Download OpenAPI specification:
|
2017-10-19 17:24:31 +03:00
|
|
|
<a class="openapi-button" [attr.download]="downloadFilename" [attr.href]="specUrl"> Download </a>
|
2016-07-28 15:56:29 +03:00
|
|
|
</p>
|
2016-03-14 23:27:07 +03:00
|
|
|
<p>
|
|
|
|
<!-- TODO: create separate components for contact and license ? -->
|
2017-04-18 16:40:31 +03:00
|
|
|
<span *ngIf="info?.contact?.url || info?.contact?.email"> Contact:
|
2016-07-20 11:07:08 +03:00
|
|
|
<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>
|
2016-07-20 11:07:08 +03:00
|
|
|
<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>
|
2017-02-03 00:08:04 +03:00
|
|
|
<redoc-externalDocs [docs]="componentSchema.externalDocs"></redoc-externalDocs>
|
2016-03-14 23:27:07 +03:00
|
|
|
</p>
|
2016-11-01 18:00:38 +03:00
|
|
|
<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>
|