# flask 3.1.3 (BSD-3-Clause), harvested by tools/harvest_corpus.py
=== input
Decorate a view function to register it for the given
        endpoint. Used if a rule is added without a ``view_func`` with
        :meth:`add_url_rule`.

        .. code-block:: python

            app.add_url_rule("/ex", endpoint="example")

            @app.endpoint("example")
            def example():
                ...

        :param endpoint: The endpoint name to associate with the view
            function.
        
=== parse rest
short_description: |
  Decorate a view function to register it for the given
  endpoint. Used if a rule is added without a ``view_func`` with
  :meth:`add_url_rule`.
long_description: |
  .. code-block:: python
  
      app.add_url_rule("/ex", endpoint="example")
  
      @app.endpoint("example")
      def example():
          ...
blank_after_short_description: True
blank_after_long_description: True
style: rest
- DocstringParam
  description: |
    The endpoint name to associate with the view
    function.
  kind: param
  key: 'param'
  arg_name: 'endpoint'
  is_optional: False
=== detect
rest
=== compose rest
Decorate a view function to register it for the given
endpoint. Used if a rule is added without a ``view_func`` with
:meth:`add_url_rule`.

.. code-block:: python

    app.add_url_rule("/ex", endpoint="example")

    @app.endpoint("example")
    def example():
        ...

:param endpoint: The endpoint name to associate with the view
    function.
