From: Timothée Mazzucotelli Date: Tue, 4 Feb 2020 03:17:20 +0000 (+0100) Subject: :memo: Add note about Body parameters without Pydantic (#900) X-Git-Tag: 0.48.0~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=68723d529148657fb5568998a96eca239901928a;p=thirdparty%2Ffastapi%2Ffastapi.git :memo: Add note about Body parameters without Pydantic (#900) --- diff --git a/docs/tutorial/body.md b/docs/tutorial/body.md index 301caaf273..78b791c8a3 100644 --- a/docs/tutorial/body.md +++ b/docs/tutorial/body.md @@ -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}.