- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 353 for Nobody (0.27 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 May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 8.7K bytes - Viewed (0) -
docs/en/docs/tutorial/body-fields.md
# Body - Fields The same way you can declare additional validation and metadata in *path operation function* parameters with `Query`, `Path` and `Body`, you can declare validation and metadata inside of Pydantic models using Pydantic's `Field`. ## Import `Field` First, you have to import it: === "Python 3.10+" ```Python hl_lines="4" {!> ../../../docs_src/body_fields/tutorial001_an_py310.py!} ``` === "Python 3.9+"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Oct 17 05:59:11 GMT 2023 - 3.6K 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 May 05 07:19:11 GMT 2024 - Last Modified: Mon Apr 01 05:35:27 GMT 2024 - 3K bytes - Viewed (0) -
docs/pt/docs/tutorial/body-fields.md
## Declare atributos do modelo Você pode então utilizar `Field` com atributos do modelo: ```Python hl_lines="11-14" {!../../../docs_src/body_fields/tutorial001.py!} ``` `Field` funciona da mesma forma que `Query`, `Path` e `Body`, ele possui todos os mesmos parâmetros, etc. !!! note "Detalhes técnicos"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Jul 02 15:00:11 GMT 2021 - 2.2K 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 May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 3.6K bytes - Viewed (0) -
docs/de/docs/tutorial/body-nested-models.md
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 10.4K bytes - Viewed (0) -
tests/test_union_body.py
} } }, }, }, "summary": "Save Union Body", "operationId": "save_union_body_items__post", "requestBody": { "content": { "application/json": { "schema": {
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 4.6K bytes - Viewed (0) -
tests/test_request_body_parameters_media_type.py
async def create_product(data: Product = Body(media_type=media_type, embed=True)): pass # pragma: no cover @app.post("/shops") async def create_shop( data: Shop = Body(media_type=media_type), included: typing.List[Product] = Body(default=[], media_type=media_type), ): pass # pragma: no cover client = TestClient(app) def test_openapi_schema(): response = client.get("/openapi.json")
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 6.4K bytes - Viewed (0) -
tests/test_response_code_no_body.py
Sebastián Ramírez <******@****.***> 1688149516 +0200
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Jun 30 18:25:16 GMT 2023 - 3.2K bytes - Viewed (0) -
tests/test_tutorial/test_request_forms/test_tutorial001_an.py
client = TestClient(app) return client def test_post_body_form(client: TestClient): response = client.post("/login/", data={"username": "Foo", "password": "secret"}) assert response.status_code == 200 assert response.json() == {"username": "Foo"} def test_post_body_form_no_password(client: TestClient): response = client.post("/login/", data={"username": "Foo"})
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 7.5K bytes - Viewed (0)