/ index.html
index.html
1 <!-- HTML for static distribution bundle build --> 2 <!DOCTYPE html> 3 <html lang="en"> 4 <head> 5 <meta charset="UTF-8"> 6 <title>Beacon-API</title> 7 <link rel="stylesheet" type="text/css" href="./dist/swagger-ui.css" > 8 <link rel="stylesheet" type="text/css" href="./dist/theme-material.css" > 9 <style> 10 .topbar-wrapper img[alt="Swagger UI"] { 11 content: url("./assets/ethereum_logo.png"); 12 height: 68px; /* Width of new image */ 13 } 14 </style> 15 <link rel="icon" type="image/png" href="./dist/favicon-32x32.png" sizes="32x32" /> 16 <link rel="icon" type="image/png" href="./dist/favicon-16x16.png" sizes="16x16" /> 17 <style> 18 html 19 { 20 box-sizing: border-box; 21 overflow: -moz-scrollbars-vertical; 22 overflow-y: scroll; 23 } 24 25 *, 26 *:before, 27 *:after 28 { 29 box-sizing: inherit; 30 } 31 32 body 33 { 34 margin:0; 35 background: #fafafa; 36 } 37 </style> 38 </head> 39 40 <body> 41 <div id="swagger-ui"></div> 42 43 <script src="./dist/swagger-ui-bundle.js"> </script> 44 <script src="./dist/swagger-ui-standalone-preset.js"> </script> 45 <script> 46 window.onload = function() { 47 // Begin Swagger UI call region 48 const ui = SwaggerUIBundle({ 49 urls: [ 50 {url: "https://github.com/ethereum/beacon-APIs/releases/download/v2.1.0/beacon-node-oapi.json", name: "v2.1.0"}, 51 {url: "https://github.com/ethereum/beacon-APIs/releases/download/v2.0.0/beacon-node-oapi.json", name: "v2.0.0"}, 52 {url: "https://github.com/ethereum/beacon-APIs/releases/download/v1/beacon-node-oapi.yaml", name: "v1"}, 53 {url: "./beacon-node-oapi.yaml", name: "dev"} 54 ], 55 basePath: "/", 56 dom_id: '#swagger-ui', 57 displayRequestDuration: true, 58 deepLinking: true, 59 docExpansion: "none", 60 presets: [ 61 SwaggerUIBundle.presets.apis, 62 SwaggerUIStandalonePreset 63 ], 64 plugins: [ 65 SwaggerUIBundle.plugins.DownloadUrl 66 ], 67 layout: "StandaloneLayout", 68 requestInterceptor: function() { 69 if(this.url.startsWith("http")) { 70 this.url = "https://api.allorigins.win/raw?url=" + this.url; // will change the URL used. 71 } 72 return this; 73 } 74 }) 75 // End Swagger UI call region 76 77 window.ui = ui 78 } 79 </script> 80 </body> 81 </html>