- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for content_es (0.1 sec)
-
docs/en/docs/tutorial/body-multiple-params.md
Let's say you only have a single `item` body parameter from a Pydantic model `Item`. By default, **FastAPI** will then expect its body directly. But if you want it to expect a JSON with a key `item` and inside of it the model contents, as it does when you declare extra body parameters, you can use the special `Body` parameter `embed`: ```Python item: Item = Body(embed=True) ``` as in: === "Python 3.10+"
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sun Jun 09 02:01:51 UTC 2024 - 7.7K bytes - Viewed (0)