File tree Expand file tree Collapse file tree 2 files changed +17
-21
lines changed
openapi_ui_bundles/swagger_ui/vendor Expand file tree Collapse file tree 2 files changed +17
-21
lines changed Original file line number Diff line number Diff line change 1414 < div id ="swagger-ui "> </ div >
1515 < script src ="./swagger-ui-bundle.js " charset ="UTF-8 "> </ script >
1616 < script src ="./swagger-ui-standalone-preset.js " charset ="UTF-8 "> </ script >
17- < script src ="./swagger-initializer.js " charset ="UTF-8 "> </ script >
17+ < script >
18+ window . onload = function ( ) {
19+ window . ui = SwaggerUIBundle ( {
20+ url : "https://petstore.swagger.io/v2/swagger.json" ,
21+ dom_id : '#swagger-ui' ,
22+ deepLinking : true ,
23+ presets : [
24+ SwaggerUIBundle . presets . apis ,
25+ SwaggerUIStandalonePreset
26+ ] ,
27+ plugins : [
28+ SwaggerUIBundle . plugins . DownloadUrl
29+ ] ,
30+ layout : "StandaloneLayout"
31+ } ) ;
32+ } ;
33+ </ script >
1834 </ body >
1935</ html >
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments