Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 67 for noembed (0.05 seconds)

  1. tests/test_request_params/test_body/test_list.py

    # Without aliases
    
    
    @app.post("/required-list-str", operation_id="required_list_str")
    async def read_required_list_str(p: Annotated[list[str], Body(embed=True)]):
        return {"p": p}
    
    
    class BodyModelRequiredListStr(BaseModel):
        p: list[str]
    
    
    @app.post("/model-required-list-str", operation_id="model_required_list_str")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 11.9K bytes
    - Click Count (0)
  2. tests/test_request_params/test_body/test_optional_str.py

    # =====================================================================================
    # Without aliases
    
    
    @app.post("/optional-str", operation_id="optional_str")
    async def read_optional_str(p: Annotated[str | None, Body(embed=True)] = None):
        return {"p": p}
    
    
    class BodyModelOptionalStr(BaseModel):
        p: str | None = None
    
    
    @app.post("/model-optional-str", operation_id="model_optional_str")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 11.5K bytes
    - Click Count (0)
  3. docs/uk/docs/tutorial/body-multiple-params.md

    ```Python
    item: Item = Body(embed=True)
    ```
    
    як у прикладі:
    
    {* ../../docs_src/body_multiple_params/tutorial005_an_py310.py hl[17] *}
    
    
    У цьому випадку **FastAPI** очікуватиме тіло такого вигляду:
    
    ```JSON hl_lines="2"
    {
        "item": {
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 13 12:42:01 GMT 2026
    - 7.3K bytes
    - Click Count (0)
  4. docs/pt/docs/tutorial/body-multiple-params.md

    ```Python
    item: Item = Body(embed=True)
    ```
    
    como em:
    
    {* ../../docs_src/body_multiple_params/tutorial005_an_py310.py hl[17] *}
    
    Neste caso o **FastAPI** esperará um corpo como:
    
    ```JSON hl_lines="2"
    {
        "item": {
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 13 13:48:53 GMT 2026
    - 5.3K bytes
    - Click Count (0)
  5. docs/es/docs/tutorial/body-multiple-params.md

    ```Python
    item: Item = Body(embed=True)
    ```
    
    como en:
    
    {* ../../docs_src/body_multiple_params/tutorial005_an_py310.py hl[17] *}
    
    En este caso, **FastAPI** esperará un cuerpo como:
    
    ```JSON hl_lines="2"
    {
        "item": {
            "name": "Foo",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 13 13:41:41 GMT 2026
    - 5.1K bytes
    - Click Count (0)
  6. docs/zh-hant/docs/tutorial/body-multiple-params.md

    `Body` 也具有與 `Query`、`Path` 以及之後你會看到的其他工具相同的額外驗證與中繼資料參數。
    
    ///
    
    ## 嵌入單一 Body 參數 { #embed-a-single-body-parameter }
    
    假設你只有一個來自 Pydantic 模型 `Item` 的單一 `item` Body 參數。
    
    預設情況下,**FastAPI** 會直接期望該模型的內容作為請求主體。
    
    但如果你想讓它像宣告多個 Body 參數時那樣,期望一個帶有 `item` 鍵、其內含模型內容的 JSON,你可以使用 `Body` 的特殊參數 `embed`:
    
    ```Python
    item: Item = Body(embed=True)
    ```
    
    如下:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 08:15:26 GMT 2026
    - 4.6K bytes
    - Click Count (0)
  7. docs/tr/docs/tutorial/body-multiple-params.md

    ```Python
    item: Item = Body(embed=True)
    ```
    
    yani şöyle:
    
    {* ../../docs_src/body_multiple_params/tutorial005_an_py310.py hl[17] *}
    
    
    Bu durumda **FastAPI** şu şekilde bir body bekler:
    
    ```JSON hl_lines="2"
    {
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 13 12:41:38 GMT 2026
    - 5.1K bytes
    - Click Count (0)
  8. docs_src/body_multiple_params/tutorial005_py310.py

    
    class Item(BaseModel):
        name: str
        description: str | None = None
        price: float
        tax: float | None = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item = Body(embed=True)):
        results = {"item_id": item_id, "item": item}
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri May 13 23:38:22 GMT 2022
    - 369 bytes
    - Click Count (0)
  9. docs_src/pydantic_v1_in_v2/tutorial004_an_py310.py

    
    class Item(BaseModel):
        name: str
        description: str | None = None
        size: float
    
    
    app = FastAPI()
    
    
    @app.post("/items/")
    async def create_item(item: Annotated[Item, Body(embed=True)]) -> Item:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Oct 11 16:45:54 GMT 2025
    - 360 bytes
    - Click Count (0)
  10. apache-maven/src/main/appended-resources/META-INF/NOTICE.vm

    developed by Rome (https://rome.dev.java.net/). about.html in archive lib/org.eclipse.sisu.inject-0.3.5.jar http://www.w3.org/1999/xhtml Content-Type text/html; charset=ISO-8859-1 About org.eclipse.sisu.inject EN-US About org.eclipse.sisu.inject November 5, 2013 License The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise indicated below, the Content is provided to you under the terms and conditions of the Eclipse Public License Version 1.0 ("EPL"). A copy...
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Sat Sep 10 19:27:25 GMT 2022
    - 5.5K bytes
    - Click Count (0)
Back to Top