 {
        url = window.location.origin + window.location.pathname.replace('index.html', 'open-api.json')
      } else {
        url = "/api-docs/open-api.json";
      }

      const urlIndex = window.location.pathname.indexOf('/api-docs/index.html');
      const basePath = window.location.pathname.slice(0, urlIndex);

      // Begin Swagger UI call region
      const ui = SwaggerUIBundle({
        url: url,
        dom_id: '#swagger-ui',
        deepLinking: true,
        docExpansion: 'none',
        tags