Skip to content
Snippets Groups Projects
Select Git revision
  • a7cc48e0ffc8b9efb7ab42d9e48ef7fcf8a1dff1
  • master default protected
  • rednatco-v2
  • base-pairs-ladder
  • rednatco
  • test
  • ntc-tube-uniform-color
  • ntc-tube-missing-atoms
  • restore-vertex-array-per-program
  • watlas2
  • dnatco_new
  • cleanup-old-nodejs
  • webmmb
  • fix_auth_seq_id
  • update_deps
  • ext_dev
  • ntc_balls
  • nci-2
  • plugin
  • bugfix-0.4.5
  • nci
  • v0.5.0-dev.1
  • v0.4.5
  • v0.4.4
  • v0.4.3
  • v0.4.2
  • v0.4.1
  • v0.4.0
  • v0.3.12
  • v0.3.11
  • v0.3.10
  • v0.3.9
  • v0.3.8
  • v0.3.7
  • v0.3.6
  • v0.3.5
  • v0.3.4
  • v0.3.3
  • v0.3.2
  • v0.3.1
  • v0.3.0
41 results

indexTemplate.html

Blame
  • indexTemplate.html 1.93 KiB
    <!DOCTYPE html>
    <html lang="en">
        <head>
            <meta charset="UTF-8">
            <title>Swagger UI</title>
            <link rel="stylesheet" type="text/css" href="${apiPrefix}/swagger-ui.css" >
            ${shortcutIconLink}
    
            <style>
                html
                {
                    box-sizing: border-box;
                    overflow: -moz-scrollbars-vertical;
                    overflow-y: scroll;
                }
                *,
                *:before,
                *:after
                {
                    box-sizing: inherit;
                }
                body
                {
                    margin:0;
                    background: #fafafa;
                }
            </style>
        </head>
    
        <body>
            <div id="swagger-ui"></div>
    
            <script src="${apiPrefix}/swagger-ui-bundle.js"> </script>
            <script src="${apiPrefix}/swagger-ui-standalone-preset.js"> </script>
            <script>
                function HidePlugin() {
                    // this plugin overrides some components to return nothing
                    return {
                        components: {
                            Topbar: function () { return null },
                            Models: function () { return null },
                        }
                    }
                }
                window.onload = function () {
                    var ui = SwaggerUIBundle({
                        url: '${openapiJsonUrl}',
                        validatorUrl: null,
                        docExpansion: 'list',
                        dom_id: '#swagger-ui',
                        deepLinking: true,
                        presets: [
                            SwaggerUIBundle.presets.apis,
                            SwaggerUIStandalonePreset
                        ],
                        plugins: [
                            SwaggerUIBundle.plugins.DownloadUrl,
                            HidePlugin
                        ],
                        layout: 'StandaloneLayout'
                    })
                    window.ui = ui
                }
            </script>
        </body>
    </html>