def swagger(): base = ApiBase() contents = base.get_swagger_file('v1') response = Response(mimetype='text/plain') response.data = contents return response
def swagger(): base = ApiBase() data = base.get_swagger_file('v1') response = Response() response.headers.add('Content-Type', 'text/plain') response.data = data return response