def METHOD_NAME():
    if app.config.get("SWAGGER_DEBUG", False):
        import yaml
        app_spec = yaml.dump(spec)
        return Response(mimetype="text/plain", response=app_spec)
    return Response(status=404)