def METHOD_NAME(self, operations, *, view, app=None, **kwargs):
    """Path helper that allows passing a Flask view function."""
    rule = self._rule_for_view(view, app=app)
    if '.' not in view.__qualname__:
        return self.flaskpath2openapi(rule.rule)
    view_name = view.__qualname__.split('.')[1]
    if view.__closure__ is None:
        return self.flaskpath2openapi(rule.rule)
    view_instance = next(cl.cell_contents for cl in view.__closure__ if isinstance(cl.cell_contents, GenericView))
    if view_name in ['get', 'put', 'post', 'delete']:
        if view.__doc__:
            if hasattr(view_instance.model_class, "__name__"):
                class_model = view_instance.model_class.__name__
            else:
                class_model = 'No name'
            # print(f'{view_name} / {class_model}')
            logger.debug(f'{view_name} / {class_model} / {rule.methods} / {view_name} / '
                         f'{view_instance._get_schema_class().__name__}')
            operations[view_name] = yaml_utils.load_yaml_from_docstring(
                view.__doc__.format(schema_class=view_instance._get_schema_class().__name__,
                                    class_model=class_model,
                                    tag_name=class_model,
                                    route_base=view_instance.route_base)
            )
    elif hasattr(view, "__doc__"):
        if not view.__doc__:
            view.__doc__ = ""
        if hasattr(view_instance.model_class, "__name__"):
            class_model = view_instance.model_class.__name__
        else:
            class_model = 'No name'
        for method in rule.methods:
            logger.debug(f'{view_name} / {class_model} / {rule.methods} / {method} / '
                         f'{view_instance._get_schema_class().__name__}')
            if method not in ['HEAD', 'OPTIONS'] or os.environ.get("FULL_API_DOC", None):
                operations[method.lower()] = yaml_utils.load_yaml_from_docstring(
                    view.__doc__.format(schema_class=view_instance._get_schema_class().__name__,
                                        class_model=class_model,
                                        tag_name=class_model,
                                        route_base=view_instance.route_base)
                )
    if hasattr(view, "view_class") and issubclass(view.view_class, MethodView):
        for method in view.methods:
            if method in rule.methods:
                method_name = method.lower()
                method = getattr(view.view_class, method_name)
                operations[method_name] = yaml_utils.load_yaml_from_docstring(
                    method.__doc__
                )
    return self.flaskpath2openapi(rule.rule)