Sha256: 174be9ce4134950285e5e3336a632071e7823a5ac3aace56de34de68ecd9c572
Contents?: true
Size: 679 Bytes
Versions: 1
Compression:
Stored size: 679 Bytes
Contents
$(function () { if(app.swagger) { window.swaggerUi = new SwaggerUi({ url: app.swagger.docsUrl, dom_id: 'swagger-ui-container', supportedSubmitMethods: ['get', 'post', 'put', 'delete', 'patch'], onComplete: function() { $('pre code').each(function(i, e) { hljs.highlightBlock(e); }); $(document).trigger('swaggerBind'); }, onFailure: function() { console.log('Unable to Load SwaggerUI'); }, docExpansion: (app.swagger.docsExpansion || 'none'), jsonEditor: true, defaultModelRendering: 'schema', showRequestHeaders: true }); window.swaggerUi.load(); } });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
apress-documentation-0.4.0 | app/assets/javascripts/swagger_ui.js |