Skip to content
Snippets Groups Projects
index.js 392 B
Newer Older
Clayton, Brandon Scott's avatar
Clayton, Brandon Scott committed
window.onload = function() {
Clayton, Brandon Scott's avatar
Clayton, Brandon Scott committed
  const ui = SwaggerUIBundle({
    defaultModelsExpandDepth: 0,
    deepLinking: true,
Clayton, Brandon Scott's avatar
Clayton, Brandon Scott committed
    dom_id: '#swagger-ui',
    layout: 'BaseLayout',
    plugins: [SwaggerUIBundle.plugins.DownloadUrl],
    presets: [SwaggerUIBundle.presets.apis],
    tagsSorter: 'alpha',
    tryItOutEnabled: true,
Clayton, Brandon Scott's avatar
Clayton, Brandon Scott committed
    validatorUrl: null,
    url: `./swagger`,
Clayton, Brandon Scott's avatar
Clayton, Brandon Scott committed
  window.ui = ui;
};