- Sort Score
- Num 10 results
- Language All
Results 1781 - 1790 of 2,058 for py$ (0.07 seconds)
-
docs/de/docs/advanced/additional-responses.md
Um beispielsweise eine weitere Response mit dem Statuscode `404` und einem Pydantic-Modell `Message` zu deklarieren, können Sie schreiben: {* ../../docs_src/additional_responses/tutorial001_py39.py hl[18,22] *} /// note | Hinweis Beachten Sie, dass Sie die `JSONResponse` direkt zurückgeben müssen. /// /// info | Info Der `model`-Schlüssel ist nicht Teil von OpenAPI.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 10K bytes - Click Count (0) -
docs/en/docs/advanced/additional-responses.md
For example, to declare another response with a status code `404` and a Pydantic model `Message`, you can write: {* ../../docs_src/additional_responses/tutorial001_py39.py hl[18,22] *} /// note Keep in mind that you have to return the `JSONResponse` directly. /// /// info The `model` key is not part of OpenAPI.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 8.9K bytes - Click Count (0) -
docs/de/docs/tutorial/cookie-param-models.md
Deklarieren Sie die **Cookie**-Parameter, die Sie benötigen, in einem **Pydantic-Modell**, und deklarieren Sie dann den Parameter als `Cookie`: {* ../../docs_src/cookie_param_models/tutorial001_an_py310.py hl[9:12,16] *}Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 10 13:54:34 GMT 2025 - 3.8K bytes - Click Count (0) -
docs/zh/docs/tutorial/extra-data-types.md
## 例子 下面是一个*路径操作*的示例,其中的参数使用了上面的一些类型。 {* ../../docs_src/extra_data_types/tutorial001_an_py310.py hl[1,3,12:16] *} 注意,函数内的参数有原生的数据类型,你可以,例如,执行正常的日期操作,如:Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 18 02:25:44 GMT 2024 - 2.5K bytes - Click Count (0) -
docs/es/docs/advanced/security/http-basic-auth.md
* Usa ese `security` con una dependencia en tu *path operation*. * Devuelve un objeto de tipo `HTTPBasicCredentials`: * Contiene el `username` y `password` enviados. {* ../../docs_src/security/tutorial006_an_py39.py hl[4,8,12] *} Cuando intentas abrir la URL por primera vez (o haces clic en el botón "Execute" en la documentación) el navegador te pedirá tu nombre de usuario y contraseña: <img src="/img/tutorial/security/image12.png">Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Dec 16 16:33:45 GMT 2025 - 5.4K bytes - Click Count (0) -
docs/en/docs/tutorial/request-form-models.md
You just need to declare a **Pydantic model** with the fields you want to receive as **form fields**, and then declare the parameter as `Form`: {* ../../docs_src/request_form_models/tutorial001_an_py39.py hl[9:11,15] *} **FastAPI** will **extract** the data for **each field** from the **form data** in the request and give you the Pydantic model you defined. ## Check the Docs { #check-the-docs }Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sun Aug 31 09:15:41 GMT 2025 - 2.2K bytes - Click Count (0) -
docs/zh/docs/tutorial/body-fields.md
## 导入 `Field` 首先,从 Pydantic 中导入 `Field`: {* ../../docs_src/body_fields/tutorial001_an_py310.py hl[4] *} /// warning | 警告 注意,与从 `fastapi` 导入 `Query`,`Path`、`Body` 不同,要直接从 `pydantic` 导入 `Field` 。 /// ## 声明模型属性 然后,使用 `Field` 定义模型的属性: {* ../../docs_src/body_fields/tutorial001_an_py310.py hl[11:14] *} `Field` 的工作方式和 `Query`、`Path`、`Body` 相同,参数也相同。 /// note | 技术细节Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 18 02:25:44 GMT 2024 - 1.6K bytes - Click Count (0) -
docs/es/docs/tutorial/cookie-param-models.md
Declara los parámetros de **cookie** que necesites en un **modelo de Pydantic**, y luego declara el parámetro como `Cookie`: {* ../../docs_src/cookie_param_models/tutorial001_an_py310.py hl[9:12,16] *} **FastAPI** **extraerá** los datos para **cada campo** de las **cookies** recibidas en el request y te entregará el modelo de Pydantic que definiste. ## Revisa la Documentación { #check-the-docs }Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Dec 16 16:33:45 GMT 2025 - 3.3K bytes - Click Count (0) -
docs/ko/docs/tutorial/request-files.md
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 18 02:25:44 GMT 2024 - 8K bytes - Click Count (0) -
docs/pt/docs/advanced/response-directly.md
Para esses casos, você pode usar o `jsonable_encoder` para converter seus dados antes de repassá-los para a resposta: {* ../../docs_src/response_directly/tutorial001_py310.py hl[5:6,20:21] *} /// note | Detalhes Técnicos Você também pode utilizar `from starlette.responses import JSONResponse`.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 3.5K bytes - Click Count (0)