From 68723d529148657fb5568998a96eca239901928a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Mazzucotelli?= Date: Tue, 4 Feb 2020 04:17:20 +0100 Subject: [PATCH] :memo: Add note about Body parameters without Pydantic (#900) --- docs/tutorial/body.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/tutorial/body.md b/docs/tutorial/body.md index 301caaf27..78b791c8a 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}.