]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
:memo: Add note about Body parameters without Pydantic (#900)
authorTimothée Mazzucotelli <pawamoy@pm.me>
Tue, 4 Feb 2020 03:17:20 +0000 (04:17 +0100)
committerGitHub <noreply@github.com>
Tue, 4 Feb 2020 03:17:20 +0000 (04:17 +0100)
docs/tutorial/body.md

index 301caaf273f619c38676deab747e5d64fbcdaab3..78b791c8a367b3c647e7f518396818340a972a33 100644 (file)
@@ -139,3 +139,7 @@ The function parameters will be recognized as follows:
 * If the parameter is also declared in the **path**, it will be used as a path parameter.
 * If the parameter is of a **singular type** (like `int`, `float`, `str`, `bool`, etc) it will be interpreted as a **query** parameter.
 * If the parameter is declared to be of the type of a **Pydantic model**, it will be interpreted as a request **body**.
+
+## Without Pydantic
+
+If you don't want to use Pydantic models, you can also use **Body** parameters. See the docs for [Body - Multiple Parameters: Singular values in body](body-multiple-params.md#singular-values-in-body){.internal-link target=_blank}.