Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 170 for embeds (0.75 sec)

  1. docs/fr/docs/tutorial/body-multiple-params.md

    ```Python
    item: Item = Body(embed=True)
    ```
    
    Voici un exemple complet :
    
    {* ../../docs_src/body_multiple_params/tutorial005_an_py310.py hl[17] *}
    
    Dans ce cas **FastAPI** attendra un body semblable à :
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Nov 09 11:10:17 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  2. docs_src/body_fields/tutorial001_an_py310.py

        )
        price: float = Field(gt=0, description="The price must be greater than zero")
        tax: float | None = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Annotated[Item, Body(embed=True)]):
        results = {"item_id": item_id, "item": item}
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 563 bytes
    - Viewed (0)
  3. docs/distributed/samples/bootstrap-partial.ldif

    objectclass: groupofnames
    cn: projectx
    description: Project X group members
    member: uid=alice1,ou=people,ou=hwengg,dc=min,dc=io
    member: uid=bobfisher,ou=people,ou=hwengg,dc=min,dc=io
    
    dn: cn=projecty,ou=groups,ou=hwengg,dc=min,dc=io
    objectclass: groupofnames
    cn: projecty
    description: Project Y group members
    member: uid=bobfisher,ou=people,ou=hwengg,dc=min,dc=io
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Thu Sep 12 15:59:00 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  4. docs/uk/docs/tutorial/body-multiple-params.md

    Але якщо Ви хочете, щоб він очікував JSON з ключем `item`, а всередині — вміст моделі (так, як це відбувається при оголошенні додаткових параметрів тіла), Ви можете використати спеціальний параметр `Body` — `embed`:
    
    ```Python
    item: Item = Body(embed=True)
    ```
    
    як у прикладі:
    
    {* ../../docs_src/body_multiple_params/tutorial005_an_py310.py hl[17] *}
    
    У цьому випадку **FastAPI** очікуватиме тіло запиту такого вигляду:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Feb 28 14:19:00 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  5. tests/test_request_body_parameters_media_type.py

    class Product(BaseModel):
        name: str
        price: float
    
    
    class Shop(BaseModel):
        name: str
    
    
    @app.post("/products")
    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: list[Product] = Body(default=[], media_type=media_type),
    ):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/dcerpc/msrpc/MsrpcGetMembersInAlias.java

    package jcifs.smb1.dcerpc.msrpc;
    
    /**
     * MSRPC implementation for retrieving members of an alias.
     * This class provides functionality to get the list of security identifiers (SIDs)
     * that are members of a specific alias using the SAMR RPC interface.
     */
    public class MsrpcGetMembersInAlias extends samr.SamrGetMembersInAlias {
    
        /**
         * Creates a new request to get members of an alias.
         *
         * @param aliasHandle the handle to the alias
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  7. .github/dco.yml

    # Disable sign-off checking for members of the Gradle GitHub organization
    require:
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Sat Aug 11 00:03:28 UTC 2018
    - 100 bytes
    - Viewed (0)
  8. fastapi/params.py

            deprecated: Union[deprecated, str, bool, None] = None,
            include_in_schema: bool = True,
            json_schema_extra: Union[dict[str, Any], None] = None,
            **extra: Any,
        ):
            self.embed = embed
            self.media_type = media_type
            if example is not _Unset:
                warnings.warn(
                    "`example` has been deprecated, please use `examples` instead",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 26.3K bytes
    - Viewed (0)
  9. docs/ko/docs/tutorial/body-multiple-params.md

    기본적으로 **FastAPI**는 직접 본문으로 예측할 것입니다.
    
    하지만, 만약 모델 내용에 `item `키를 가진 JSON으로 예측하길 원한다면, 추가적인 본문 매개변수를 선언한 것처럼 `Body`의 특별한 매개변수인 `embed`를 사용할 수 있습니다:
    
    {* ../../docs_src/body_multiple_params/tutorial005.py hl[17] *}
    
    아래 처럼:
    
    ```Python
    item: Item = Body(..., embed=True)
    ```
    
    이 경우에 **FastAPI**는 본문을 아래 대신에:
    
    ```JSON hl_lines="2"
    {
        "name": "Foo",
        "description": "The pretender",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  10. docs/zh/docs/tutorial/body-multiple-params.md

    ///
    
    ## 嵌入单个请求体参数
    
    假设你只有一个来自 Pydantic 模型 `Item` 的请求体参数 `item`。
    
    默认情况下,**FastAPI** 将直接期望这样的请求体。
    
    但是,如果你希望它期望一个拥有 `item` 键并在值中包含模型内容的 JSON,就像在声明额外的请求体参数时所做的那样,则可以使用一个特殊的 `Body` 参数 `embed`:
    
    ```Python
    item: Item = Body(embed=True)
    ```
    
    比如:
    
    {* ../../docs_src/body_multiple_params/tutorial005_an_py310.py hl[17] *}
    
    在这种情况下,**FastAPI** 将期望像这样的请求体:
    
    ```JSON hl_lines="2"
    {
        "item": {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 4.7K bytes
    - Viewed (0)
Back to top