text: import Controller from '@ember/controller';
  import Swag from 'swagger-ui';
  
  const {
    SwaggerUIBundle,
    SwaggerUIStandalonePreset
  } = Swag;
  
  export default Controller.extend({
  
    init() {
      this._super(...arguments);
  
      this.swaggerConfig = {
        url: 'https://petstore.swagger.io/v2/swagger.json',
        deepLinking: false,
        presets: [
          SwaggerUIStandalonePreset,
          SwaggerUIBundle.presets.apis,
          SwaggerUIBundle.plugins.DownloadUrl
        ],
        layout: "StandaloneLayout",
        docExpansion: 'none',
        tagsSorter: 'alpha',
        operationsSorter: 'alpha',
        defaultModelsExpandDepth: -1,
        defaultModelExpandDepth: 1,
        validatorUrl: 'https://online.swagger.io/validator'
      };
    }
  
  });
  