github.com/treeverse/lakefs@v1.24.1-0.20240520134607-95648127bfb0/docs/assets/js/swagger-ui-lakefs.js (about) 1 2 window.onload = function() { 3 // Begin Swagger UI call region 4 const ui = SwaggerUIBundle({ 5 url: "../assets/js/swagger.yml", 6 dom_id: '#swagger-ui', 7 deepLinking: true, 8 validatorUrl: null, 9 supportedSubmitMethods: [], 10 presets: [ 11 SwaggerUIBundle.presets.apis, 12 SwaggerUIStandalonePreset 13 ], 14 plugins: [], 15 layout: "BaseLayout", 16 onComplete: () => { 17 const operationId = window.location.hash.replace(/\//g, '-').replace('#', ''); 18 const elem = operationId && document.getElementById('operations' + operationId); 19 if (elem) { 20 setTimeout(function () { elem.scrollIntoView(); }, 100); 21 } 22 } 23 }) 24 // End Swagger UI call region 25 26 window.ui = ui 27 }