- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 83 for tutorial003_04_py310 (0.08 sec)
-
docs/es/docs/tutorial/body-multiple-params.md
Pero puedes instruir a **FastAPI** para que lo trate como otra clave del cuerpo usando `Body`: {* ../../docs_src/body_multiple_params/tutorial003_an_py310.py hl[23] *} En este caso, **FastAPI** esperará un cuerpo como: ```JSON { "item": { "name": "Foo", "description": "The pretender", "price": 42.0, "tax": 3.2Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Dec 16 16:33:45 UTC 2025 - 5.2K bytes - Viewed (0) -
docs/de/docs/how-to/migrate-from-pydantic-v1-to-pydantic-v2.md
``` In einigen Fällen ist es sogar möglich, sowohl Pydantic‑v1‑ als auch Pydantic‑v2‑Modelle in derselben **Pfadoperation** Ihrer FastAPI‑App zu verwenden: {* ../../docs_src/pydantic_v1_in_v2/tutorial003_an_py310.py hl[2:3,6,12,21:22] *} Im obigen Beispiel ist das Eingabemodell ein Pydantic‑v1‑Modell, und das Ausgabemodell (definiert in `response_model=ItemV2`) ist ein Pydantic‑v2‑Modell.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 24 10:28:19 UTC 2025 - 6.3K bytes - Viewed (0) -
docs/es/docs/tutorial/header-params.md
Recibirás todos los valores del header duplicado como una `list` de Python. Por ejemplo, para declarar un header de `X-Token` que puede aparecer más de una vez, puedes escribir: {* ../../docs_src/header_params/tutorial003_an_py310.py hl[9] *} Si te comunicas con esa *path operation* enviando dos headers HTTP como: ``` X-Token: foo X-Token: bar ``` El response sería como: ```JSON { "X-Token values": [Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Dec 16 16:33:45 UTC 2025 - 3.2K bytes - Viewed (0) -
docs/zh/docs/tutorial/schema-extra-example.md
请记住,传递的那些额外参数不会添加任何验证,只会添加注释,用于文档的目的。 /// ## `Body` 额外参数 你可以通过传递额外信息给 `Field` 同样的方式操作`Path`, `Query`, `Body`等。 比如,你可以将请求体的一个 `example` 传递给 `Body`: {* ../../docs_src/schema_extra_example/tutorial003_an_py310.py hl[22:27] *} ## 文档 UI 中的例子 使用上面的任何方法,它在 `/docs` 中看起来都是这样的: <img src="/img/tutorial/body-fields/image01.png"> ## 技术细节 关于 `example` 和 `examples`...Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 2.4K bytes - Viewed (0) -
docs/en/docs/tutorial/body-multiple-params.md
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Sep 20 12:58:04 UTC 2025 - 4.9K bytes - Viewed (0) -
docs/de/docs/tutorial/body-multiple-params.md
Aber Sie können **FastAPI** instruieren, ihn als weiteren Body-Schlüssel zu erkennen, indem Sie `Body` verwenden: {* ../../docs_src/body_multiple_params/tutorial003_an_py310.py hl[23] *} In diesem Fall erwartet **FastAPI** einen Body wie: ```JSON { "item": { "name": "Foo", "description": "The pretender", "price": 42.0, "tax": 3.2Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Sep 20 15:10:09 UTC 2025 - 5.5K bytes - Viewed (0) -
docs/en/docs/how-to/migrate-from-pydantic-v1-to-pydantic-v2.md
style V2Field fill:#f9fff3 ``` In some cases, it's even possible to have both Pydantic v1 and v2 models in the same **path operation** in your FastAPI app: {* ../../docs_src/pydantic_v1_in_v2/tutorial003_an_py310.py hl[2:3,6,12,21:22] *} In this example above, the input model is a Pydantic v1 model, and the output model (defined in `response_model=ItemV2`) is a Pydantic v2 model.
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 20 15:55:38 UTC 2025 - 5.5K bytes - Viewed (0) -
docs/pt/docs/tutorial/body-multiple-params.md
Mas você pode instruir o **FastAPI** para tratá-lo como outra chave do corpo usando `Body`: {* ../../docs_src/body_multiple_params/tutorial003_an_py310.py hl[23] *} Neste caso, o **FastAPI** esperará um corpo como: ```JSON { "item": { "name": "Foo", "description": "The pretender", "price": 42.0, "tax": 3.2Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Nov 12 16:23:57 UTC 2025 - 5.4K bytes - Viewed (0) -
docs/en/docs/tutorial/dependencies/classes-as-dependencies.md
/// tip Prefer to use the `Annotated` version if possible. /// ```Python commons = Depends(CommonQueryParams) ``` //// ...as in: {* ../../docs_src/dependencies/tutorial003_an_py310.py hl[19] *} But declaring the type is encouraged as that way your editor will know what will be passed as the parameter `commons`, and then it can help you with code completion, type checks, etc:
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 6.7K bytes - Viewed (0) -
docs/pt/docs/tutorial/dependencies/classes-as-dependencies.md
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 7.3K bytes - Viewed (0)