You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/usage.rst
+9-3
Original file line number
Diff line number
Diff line change
@@ -6,20 +6,26 @@ Usage
6
6
Decorators
7
7
----------
8
8
9
-
Use the :func:`use_kwargs <flask_apispec.annotations.use_kwargs>` and :func:`marshal_with <flask_apispec.annotations.marshal_with>` decorators on functions, methods, or classes to declare request parsing and response marshalling behavior, respectively.
9
+
Use the :func:`use_args <flask_apispec.annotations.use_args>`, :func:`use_kwargs <flask_apispec.annotations.use_kwargs>` and :func:`marshal_with <flask_apispec.annotations.marshal_with>` decorators on functions, methods, or classes to declare request parsing and response marshalling behavior, respectively.
10
10
11
11
.. code-block:: python
12
12
13
13
import flask
14
14
from webargs import fields
15
-
from flask_apispec import use_kwargs, marshal_with
15
+
from flask_apispec importuse_args, use_kwargs, marshal_with
0 commit comments