title: Swagger UI configuration with swagger-config.yaml
body: <p>As per swagger documentation,</p>
  
  <blockquote>
    <p>Swagger-UI accepts configuration parameters in four locations.</p>
    
    <p>From lowest to highest precedence:</p>
    
    <ol>
    <li>The swagger-config.yaml in the project root directory, if it exists, is baked into the application</li>
    <li>configuration object passed as an argument to Swagger-UI (SwaggerUI({ ... }))</li>
    <li>configuration document fetched from a specified configUrl</li>
    <li>configuration items passed as key/value pairs in the URL query string</li>
    </ol>
  </blockquote>
  
  <p>I have tried to put swagger-config.yaml in root pat of application but its not working.</p>
  
  <p>I have followed swagger Installation steps and its working correct.
  but steps for swagger custom config is not working. I have kept files as below,</p>
  
  <pre><code> swagger-ui
     |--swagger-config.yaml
     |--index.html
  </code></pre>
  
  <h1>swagger-config.yaml</h1>
  
  <pre><code>url: "https://petstore.swagger.io/v2/swagger.json"
  dom_id: "#swagger-ui"
  validatorUrl: "https://online.swagger.io/validator"
  oauth2RedirectUrl: "http://localhost:3200/oauth2-redirect.html"
  </code></pre>
  
  <h1>index.html</h1>
  
  <pre><code>// Begin Swagger UI call region
        const ui = SwaggerUIBundle({
          //url: "https://petstore.swagger.io/v2/swagger.json",
          //dom_id: '#swagger-ui',
          deepLinking: true,
          presets: [
            SwaggerUIBundle.presets.apis,
            SwaggerUIStandalonePreset
          ],
          plugins: [
            SwaggerUIBundle.plugins.DownloadUrl
          ],
          layout: "StandaloneLayout"
        })
  </code></pre>
  
  <p>Any idea if I am missing anything ?</p>