- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 213 for body (0.15 sec)
-
docs/ko/docs/tutorial/body.md
<img src="/img/tutorial/body/image01.png"> 이를 필요로 하는 각각의 *경로 작동*내부의 API 문서에도 사용됩니다: <img src="/img/tutorial/body/image02.png"> ## 편집기 지원 편집기에서, 함수 내에서 타입 힌트와 완성을 어디서나 (만약 Pydantic model 대신에 `dict`을 받을 경우 나타나지 않을 수 있습니다) 받을 수 있습니다: <img src="/img/tutorial/body/image03.png"> 잘못된 타입 연산에 대한 에러 확인도 받을 수 있습니다: <img src="/img/tutorial/body/image04.png">
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 8.7K bytes - Viewed (0) -
docs/ja/docs/tutorial/body.md
<img src="/img/tutorial/body/image01.png"> そして、それらが使われる *パスオペレーション* のそれぞれのAPIドキュメントにも表示されます: <img src="/img/tutorial/body/image02.png"> ## エディターサポート エディターによる型ヒントと補完が関数内で利用できます (Pydanticモデルではなく `dict` を受け取ると、同じサポートは受けられません): <img src="/img/tutorial/body/image03.png"> 型によるエラーチェックも可能です: <img src="/img/tutorial/body/image04.png"> これは偶然ではなく、このデザインに基づいてフレームワークが作られています。
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 7.9K bytes - Viewed (0) -
docs/fr/docs/tutorial/body.md
```Python hl_lines="4" {!../../../docs_src/body/tutorial001.py!} ``` ## Créez votre modèle de données Déclarez ensuite votre modèle de données en tant que classe qui hérite de `BaseModel`. Utilisez les types Python standard pour tous les attributs : ```Python hl_lines="7-11" {!../../../docs_src/body/tutorial001.py!} ```
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 7.8K bytes - Viewed (0) -
docs/uk/docs/tutorial/body.md
## Без Pydantic
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 11.2K bytes - Viewed (0) -
docs/zh/docs/tutorial/body-fields.md
{!> ../../../docs_src/body_fields/tutorial001.py!} ``` `Field` 的工作方式和 `Query`、`Path`、`Body` 相同,参数也相同。 !!! note "技术细节" 实际上,`Query`、`Path` 都是 `Params` 的子类,而 `Params` 类又是 Pydantic 中 `FieldInfo` 的子类。 Pydantic 的 `Field` 返回也是 `FieldInfo` 的类实例。 `Body` 直接返回的也是 `FieldInfo` 的子类的对象。后文还会介绍一些 `Body` 的子类。 注意,从 `fastapi` 导入的 `Query`、`Path` 等对象实际上都是返回特殊类的函数。 !!! tip "提示"
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Mon Apr 01 05:35:27 GMT 2024 - 3K bytes - Viewed (0) -
docs/zh/docs/tutorial/body-updates.md
然后再用它生成一个只含已设置(在请求中所发送)数据,且省略了默认值的 `dict`: ```Python hl_lines="34" {!../../../docs_src/body_updates/tutorial002.py!} ``` ### 使用 Pydantic 的 `update` 参数 接下来,用 `.copy()` 为已有模型创建调用 `update` 参数的副本,该参数为包含更新数据的 `dict`。 例如,`stored_item_model.copy(update=update_data)`: ```Python hl_lines="35" {!../../../docs_src/body_updates/tutorial002.py!} ``` ### 更新部分数据小结 简而言之,更新部分数据应:
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 3.6K bytes - Viewed (0) -
docs/de/docs/tutorial/body.md
## Ohne Pydantic
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 8.1K bytes - Viewed (0) -
docs/en/docs/tutorial/body.md
# Request Body When you need to send data from a client (let's say, a browser) to your API, you send it as a **request body**. A **request** body is data sent by the client to your API. A **response** body is the data your API sends to the client. Your API almost always has to send a **response** body. But clients don't necessarily need to send **request** bodies all the time.
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 7.3K bytes - Viewed (0) -
docs/zh/docs/tutorial/body.md
Pydantic 模型的 JSON 概图是 OpenAPI 生成的概图部件,可在 API 文档中显示: <img src="/img/tutorial/body/image01.png"> 而且,还会用于 API 文档中使用了概图的*路径操作*: <img src="/img/tutorial/body/image02.png"> ## 编辑器支持 在编辑器中,函数内部均可使用类型提示、代码补全(如果接收的不是 Pydantic 模型,而是**字典**,就没有这样的支持): <img src="/img/tutorial/body/image03.png"> 还支持检查错误的类型操作: <img src="/img/tutorial/body/image04.png"> 这并非偶然,整个 **FastAPI** 框架都是围绕这种思路精心设计的。
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 6.5K bytes - Viewed (0) -
docs/pt/docs/tutorial/body.md
## Sem o Pydantic
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 7.1K bytes - Viewed (0)