window.onload = function () {
    //<editor-fold desc="Changeable Configuration Block">

    // the following lines will be replaced by docker/configurator, when it runs in a docker-container
    const swaggerURL = new URL("../swagger.json", window.location.href).href;
    window.ui = SwaggerUIBundle({
        url: swaggerURL,
        dom_id: '#swagger-ui',
        deepLinking: true,
        presets: [
            SwaggerUIBundle.presets.apis
        ],
        plugins: [
            SwaggerUIBundle.plugins.DownloadUrl
        ],
        layout: "BaseLayout",
        docExpansion: 'none',
        defaultModelsExpandDepth: -1,
        filter: true,
        tryItOutEnabled: true,
    });

    //</editor-fold>
};
