improved prior 8.2 fix
[openemr.git] / swagger / index.html
blob530b44dd7f9fa47d4f71f313709b27ffe2477ec0
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 rel="stylesheet" type="text/css" href="./swagger-ui.css" />
8 <link rel="icon" type="image/png" href="./favicon-32x32.png" sizes="32x32" />
9 <link rel="icon" type="image/png" href="./favicon-16x16.png" sizes="16x16" />
10 <style>
11 html
13 box-sizing: border-box;
14 overflow: -moz-scrollbars-vertical;
15 overflow-y: scroll;
19 *:before,
20 *:after
22 box-sizing: inherit;
25 body
27 margin:0;
28 background: #fafafa;
30 </style>
31 </head>
33 <body>
34 <div id="swagger-ui"></div>
36 <script src="./swagger-ui-bundle.js" charset="UTF-8"> </script>
37 <script src="./swagger-ui-standalone-preset.js" charset="UTF-8"> </script>
38 <script>
39 window.onload = function() {
40 // Begin Swagger UI call region
41 const ui = SwaggerUIBundle({
42 url: "openemr-api.yaml",
43 dom_id: '#swagger-ui',
44 oauth2RedirectUrl: `${window.location.protocol}//${window.location.host}${window.location.pathname.replace(/[^/]*$/, '')}oauth2-redirect.html`,
45 deepLinking: true,
46 presets: [
47 SwaggerUIBundle.presets.apis
49 defaultModelsExpandDepth: -1
50 });
51 // End Swagger UI call region
53 window.ui = ui;
55 </script>
56 </body>
57 </html>