title: How to change default swagger.json file path?
body: <p>I have created Ngnix-Consul Docker setup referred <a href="https://github.com/nginxinc/NGINX-Demos/tree/master/consul-template-demo" rel="noreferrer">https://github.com/nginxinc/NGINX-Demos/tree/master/consul-template-demo</a>.</p>
  
  <p>And have created many microservices. So All the microservices are accessible only after adding the service name for e.g.</p>
  
  <pre><code>http://example.com/service_name/get_data
  </code></pre>
  
  <p>All is working fine then I wanted to add swagger for all microservices so tried with below snippet
  I am able to access swagger ui by using</p>
  
  <pre><code>http://example.com/service_name/ui
  </code></pre>
  
  <p>But the problem is I am not able to load swagger.json in that ui as its trying to access swagger.json on below url</p>
  
  <pre><code>http://example.com/swagger.json
  </code></pre>
  
  <p>but the json file is on </p>
  
  <pre><code>http://example.com/service_name/swagger.json    
  </code></pre>
  
  <p>How can I change the default path of swagger.json?</p>
  
  <p>The applications in microservices are created in python-flask
      I have tried below snippet</p>
  
  <pre><code>swagger: "2.0"
      info:
        description: "Add service"
        version: "1.0.0"
        title: "Add Service"
        contact:
          email: "abc@efg.com"
        license:
          name: "s1.0"
          url: "http://sample.com"
      host: "abc.efg.com"
      tags:
      - name: "add service"
        description: "service"
      - name: "delete service"
        description: "data"
      schemes:
      - "http"
      paths:
        /service_name/get_data:
  </code></pre>
  
  <p>and even I have tried to add basePath in the swagger.yaml file
  then It did not even open swaggerui</p>
  
  <pre><code>swagger: "2.0"
      info:
        description: "Add service"
        version: "1.0.0"
        title: "Add Service"
        contact:
          email: "abc@efg.com"
        license:
          name: "s1.0"
          url: "http://sample.com"
      host: "abc.efg.com"
      basePath: "service_name"
      tags:
      - name: "add service"
        description: "service"
      - name: "delete service"
        description: "data"
      schemes:
      - "http"
      paths:
        /get_data:
  </code></pre>
  
  <p>Update:</p>
  
  <pre><code>from flask import Flask
  import connexion
  
  app = Flask(__name__)
  app = connexion.App(__name__)
  app.add_api('swagger.yaml')
  
  //apis
  
  if __name__ == "__main__":
      app.run(host='0.0.0.0', port=8090, debug=True)
  </code></pre>