title: Cannot get API specs with Flask Blueprints and Swagger UI
body: <p>So, following the examples for swagger ui usage with flask blueprints (<a href="https://github.com/rantav/flask-restful-swagger/blob/master/examples/blueprints.py" rel="nofollow">https://github.com/rantav/flask-restful-swagger/blob/master/examples/blueprints.py</a>), I have the following code:</p>
  
  <pre><code>app = Flask(__name__)
  test_blueprint = Blueprint('tests', __name__)
  test_api = swagger.docs(restful.Api(test_blueprint), apiVersion='0.1',
                          basePath='http://localhost:5000',
                          produces=["application/json", "text/html"],
                          api_spec_url='/api/spec')
  
  # Operation TestOp defined here
  test_api.add_resource(TestOp, '/')
  
  if __name__ == "__main__":
      app.register_blueprint(test_blueprint, url_prefix='/test')
      app.run(debug=True)
  </code></pre>
  
  <p>However, when I try to access the api spec docs, the URL cannot be located.
  I've tried...</p>
  
  <pre><code>localhost:5000/api/spec
  localhost:5000/test_api/api/spec
  localhost:5000/test_api
  </code></pre>
  
  <p>...all of which return a 404. I've also tried creating the app without blueprints, creating the docs with</p>
  
  <pre><code>swagger.docs(restful.Api(app)...)
  </code></pre>
  
  <p>instead. When there this is done and no blueprints are involved, I can reach the docs at </p>
  
  <pre><code>localhost:5000/api/spec
  </code></pre>
  
  <p>So, am I creating my application incorrectly with blueprints, or am I just not hitting the right URL to get access to the docs?</p>