vendor/shopware/core/Framework/Resources/views/swagger.html.twig line 1

Open in your IDE?
  1. <!-- HTML for static distribution bundle build -->
  2. <!DOCTYPE html>
  3. <html lang="en">
  4. <head>
  5.   <meta charset="UTF-8">
  6.   <title>Swagger UI</title>
  7.   <link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700|Source+Code+Pro:300,600|Titillium+Web:400,600,700" rel="stylesheet">
  8.   <link rel="stylesheet" type="text/css" href="{{ asset('bundles/framework/swagger-ui.css') }}" >
  9.   <link rel="icon" type="image/png" href="{{ asset('bundles/framework/favicon-32x32.png') }}" sizes="32x32" />
  10.   <link rel="icon" type="image/png" href="{{ asset('bundles/framework/favicon-16x16.png') }}" sizes="16x16" />
  11.   <style>
  12.     html
  13.     {
  14.       box-sizing: border-box;
  15.       overflow: -moz-scrollbars-vertical;
  16.       overflow-y: scroll;
  17.     }
  18.     *,
  19.     *:before,
  20.     *:after
  21.     {
  22.       box-sizing: inherit;
  23.     }
  24.     body
  25.     {
  26.       margin:0;
  27.       background: #fafafa;
  28.     }
  29.   </style>
  30.   <style>.swagger-ui .topbar { display: none !important; }</style>
  31. </head>
  32. <body>
  33. <div id="swagger-ui"></div>
  34. <script nonce="{{ cspNonce }}" src="{{ asset('bundles/framework/swagger-ui-bundle.js') }}"> </script>
  35. <script nonce="{{ cspNonce }}" src="{{ asset('bundles/framework/swagger-ui-standalone-preset.js') }}"> </script>
  36. <script nonce="{{ cspNonce }}" >
  37.     window.onload = function() {
  38.         // Build a system
  39.         const ui = SwaggerUIBundle({
  40.             url: "{{ url(schemaUrl, {'version': apiVersion, 'type': apiType}) }}",
  41.             dom_id: '#swagger-ui',
  42.             deepLinking: true,
  43.             displayOperationId: true,
  44.             docExpansion: 'list',
  45.             defaultModelsExpandDepth: -1,
  46.             presets: [
  47.                 SwaggerUIBundle.presets.apis,
  48.                 SwaggerUIStandalonePreset,
  49.             ],
  50.             plugins: [
  51.                 SwaggerUIBundle.plugins.DownloadUrl
  52.             ],
  53.             layout: "StandaloneLayout",
  54.             showCommonExtensions: true
  55.         });
  56.         window.ui = ui
  57.     }
  58. </script>
  59. </body>
  60. </html>