Exemple #1
0
def swagger():
    base = ApiBase()
    contents = base.get_swagger_file('v1')

    response = Response(mimetype='text/plain')
    response.data = contents
    return response
Exemple #2
0
def swagger():
    base = ApiBase()
    data = base.get_swagger_file('v1')

    response = Response()
    response.headers.add('Content-Type', 'text/plain')
    response.data = data
    return response