<!doctype html> <!-- Important: must specify -->
<html>
<head>
    <meta charset="utf-8"> <!-- Important: rapi-doc uses utf8 characters -->
    <script type="module" src="{{ $.RapiDocSource }}"></script> <!-- https://unpkg.com/rapidoc/dist/rapidoc-min.js -->
</head>
<body>
    <rapi-doc
            spec-url="{{ $.ApiSpecUrl }}"
            theme="dark"
            render-style="focused"
            allow-server-selection="false"
            allow-authentication="true"
            load-fonts="false"
            schema-style="table"
            schema-expand-level="1"
            default-schema-tab="model"
            fill-request-fields-with-example="true"
            show-method-in-nav-bar="as-colored-block"
            show-components="true"
            allow-spec-url-load="false"
            allow-spec-file-load="false"
            allow-spec-file-download="true"
    >
        <img slot="logo" src="{{$.BasePath}}/img/header-logo-small.png" style="width:50px; height:50px"/>

        <p slot="footer" style="margin:0; padding:16px 36px; background-color:#f76b39; color:#fff; text-align:center;" >
            Copyright © WireGuard Portal {{$.Year}}, version {{$.Version}}
        </p>
        <h2 slot="header" >
            WireGuard Portal API documentation
        </h2>
    </rapi-doc>
</body>
</html>