I have been trying to set swagger paths for YAML files for my flask application. Those are external YAML files. But flask in unable to read the YAML files somehow.
Following is my setting as of now.
run.py
app = Flask(__name__)
api = Api(app)
swagger = Swagger(app)
city.py
class City(Resource):
@swag_from('swagger/city/city_get.yaml')
I tried following:
- Provide full path - It worked
- set swagger_config['specs']['config']['yaml'] = 'path/to/yaml' - Didnt work
I just need to set "swagger" folder path for all my functions.