- Sort Score
- Result 10 results
- Languages All
Results 331 - 340 of 609 for tutorial013_py39 (0.75 sec)
-
docs/ru/docs/tutorial/path-params-numeric-validations.md
{* ../../docs_src/path_params_numeric_validations/tutorial003_py39.py hl[7] *} ### Лучше с `Annotated` { #better-with-annotated }Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 10.6K bytes - Viewed (0) -
docs/zh/docs/tutorial/extra-models.md
使用同样的方式也可以声明由对象列表构成的响应。 为此,请使用标准的 Python `typing.List`: {* ../../docs_src/extra_models/tutorial004_py39.py hl[18] *} ## 任意 `dict` 构成的响应 任意的 `dict` 都能用于声明响应,只要声明键和值的类型,无需使用 Pydantic 模型。 事先不知道可用的字段 / 属性名时(Pydantic 模型必须知道字段是什么),这种方式特别有用。 此时,可以使用 `typing.Dict`: {* ../../docs_src/extra_models/tutorial005_py39.py hl[6] *} ## 小结 针对不同场景,可以随意使用不同的 Pydantic 模型继承定义的基类。Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 5.7K bytes - Viewed (0) -
docs/de/docs/tutorial/extra-models.md
Auf die gleiche Weise können Sie Responses von Listen von Objekten deklarieren. Dafür verwenden Sie Pythons Standard-`typing.List` (oder nur `list` in Python 3.9 und höher): {* ../../docs_src/extra_models/tutorial004_py39.py hl[18] *} ## Response mit beliebigem `dict` { #response-with-arbitrary-dict }Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 24 10:28:19 UTC 2025 - 8K bytes - Viewed (0) -
docs/ru/docs/tutorial/extra-models.md
Таким же образом вы можете определять ответы как списки объектов. Для этого используйте `typing.List` из стандартной библиотеки Python (или просто `list` в Python 3.9 и выше): {* ../../docs_src/extra_models/tutorial004_py39.py hl[18] *} ## Ответ с произвольным `dict` { #response-with-arbitrary-dict }
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Sep 30 11:24:39 UTC 2025 - 11.5K bytes - Viewed (0) -
docs/es/docs/advanced/additional-responses.md
Y un response con un código de estado `200` que usa tu `response_model`, pero incluye un `example` personalizado: {* ../../docs_src/additional_responses/tutorial003_py39.py hl[20:31] *} Todo se combinará e incluirá en tu OpenAPI, y se mostrará en la documentación de la API: <img src="/img/tutorial/additional-responses/image01.png">Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 9.3K bytes - Viewed (0) -
docs/de/docs/advanced/additional-responses.md
Und eine Response mit dem Statuscode `200`, die Ihr `response_model` verwendet, aber ein benutzerdefiniertes Beispiel (`example`) enthält: {* ../../docs_src/additional_responses/tutorial003_py39.py hl[20:31] *} Es wird alles kombiniert und in Ihre OpenAPI eingebunden und in der API-Dokumentation angezeigt: <img src="/img/tutorial/additional-responses/image01.png">
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 10K bytes - Viewed (0) -
docs/en/docs/advanced/additional-responses.md
And a response with a status code `200` that uses your `response_model`, but includes a custom `example`: {* ../../docs_src/additional_responses/tutorial003_py39.py hl[20:31] *} It will all be combined and included in your OpenAPI, and shown in the API docs: <img src="/img/tutorial/additional-responses/image01.png">Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 8.9K bytes - Viewed (0) -
docs/pt/docs/tutorial/extra-models.md
Da mesma forma, você pode declarar respostas de listas de objetos. Para isso, use o padrão Python `typing.List` (ou simplesmente `list` no Python 3.9 e superior): {* ../../docs_src/extra_models/tutorial004_py39.py hl[18] *} ## Resposta com `dict` arbitrário { #response-with-arbitrary-dict }Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Nov 12 16:23:57 UTC 2025 - 7.5K bytes - Viewed (0) -
docs/pt/docs/how-to/extending-openapi.md
Primeiro, escreva toda a sua aplicação **FastAPI** normalmente: {* ../../docs_src/extending_openapi/tutorial001_py39.py hl[1,4,7:9] *} ### Gerar o esquema OpenAPI { #generate-the-openapi-schema } Em seguida, use a mesma função utilitária para gerar o esquema OpenAPI, dentro de uma função `custom_openapi()`: {* ../../docs_src/extending_openapi/tutorial001_py39.py hl[2,15:21] *} ### Modificar o esquema OpenAPI { #modify-the-openapi-schema }Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 3.6K bytes - Viewed (0) -
docs/zh/docs/tutorial/request-files.md
/// ### 带有额外元数据的多文件上传 和之前的方式一样, 您可以为 `File()` 设置额外参数, 即使是 `UploadFile`: {* ../../docs_src/request_files/tutorial003_py39.py hl[16] *} ## 小结Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 6.3K bytes - Viewed (0)