Sha256: ccb552a15f34f8b1a41d78ba06fd35a09ae530f07a679948ba3a743021af6e7e
Contents?: true
Size: 1.01 KB
Versions: 22
Compression:
Stored size: 1.01 KB
Contents
<script src="https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.19.5/swagger-ui-bundle.js"> </script> <script src="https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.19.5/swagger-ui-standalone-preset.js"> </script> <script> function get(yourUrl){ var Httpreq = new XMLHttpRequest(); // a new request Httpreq.open("GET",yourUrl,false); Httpreq.send(null); var json_obj = JSON.parse(Httpreq.responseText); return json_obj; } window.onload = function() { const ui = SwaggerUIBundle({ spec: get('<%= @swagger_json_url %>'), dom_id: '#swagger-ui', deepLinking: true, presets: [ SwaggerUIBundle.presets.apis, SwaggerUIStandalonePreset ], plugins: [ SwaggerUIBundle.plugins.DownloadUrl ], layout: "StandaloneLayout" }) window.ui = ui } </script>
Version data entries
22 entries across 22 versions & 1 rubygems
Version | Path |
---|---|
thecore_ui_commons-3.1.3 | app/views/info/swagger.html.erb |
thecore_ui_commons-3.1.2 | app/views/info/swagger.html.erb |