Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 63 for embed (0.03 sec)

  1. tests/test_required_noneable.py

        response = client.post("/body-embed")
        assert response.status_code == 422
    
    
    def test_required_nonable_body_embed_invalid():
        response = client.post("/body-embed", json={"invalid": "invalid"})
        assert response.status_code == 422
    
    
    def test_required_noneable_body_embed_value():
        response = client.post("/body-embed", json={"b": "foo"})
        assert response.status_code == 200
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat May 14 19:08:31 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  2. build-logic/documentation/src/main/groovy/gradlebuild/docs/DecorateReleaseNotes.java

        public abstract ConfigurableFileCollection getJquery();
    
        /**
         * The release notes javascript to embed in the HTML
         */
        @InputFile
        @PathSensitive(PathSensitivity.NONE)
        public abstract RegularFileProperty getReleaseNotesJavascriptFile();
    
        /**
         * The release notes CSS to embed in the HTML
         */
        @InputFile
        @PathSensitive(PathSensitivity.NONE)
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Sep 28 06:35:15 UTC 2021
    - 4.1K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/body-multiple-params.md

    ///
    
    ## Embed a single body parameter
    
    Let's say you only have a single `item` body parameter from a Pydantic model `Item`.
    
    By default, **FastAPI** will then expect its body directly.
    
    But if you want it to expect a JSON with a key `item` and inside of it the model contents, as it does when you declare extra body parameters, you can use the special `Body` parameter `embed`:
    
    ```Python
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  4. docs_src/body_fields/tutorial001_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: Item = Body(embed=True)):
        results = {"item_id": item_id, "item": item}
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri May 13 23:38:22 UTC 2022
    - 523 bytes
    - Viewed (0)
  5. docs_src/body_fields/tutorial001.py

        )
        price: float = Field(gt=0, description="The price must be greater than zero")
        tax: Union[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}
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri May 13 23:38:22 UTC 2022
    - 561 bytes
    - Viewed (0)
  6. docs_src/body_fields/tutorial001_an.py

        )
        price: float = Field(gt=0, description="The price must be greater than zero")
        tax: Union[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 Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 611 bytes
    - Viewed (0)
  7. build-logic/documentation/src/main/groovy/gradlebuild/docs/ReleaseNotesTransformer.java

            
            // Replace YouTube references by embedded videos, ?si= attribute is a must
            // E.g. @youtube(Summary,UN0AFCLASZA?si=9aG5tDzj6nL1_IKT&start=371)@ => https://www.youtube.com/embed/UN0AFCLASZA?si=9aG5tDzj6nL1_IKT&start=371"
            // "&rel=0" is also force-injected to prevent video recommendations from other channels
            rewritten = rewritten.replaceAll("\\@youtube\\(([a-zA-Z\\-_]+)\\,([^\\s<]+)\\)\\@", 
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Oct 03 05:02:20 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  8. docs_src/body_multiple_params/tutorial005_an_py39.py

        name: str
        description: Union[str, None] = None
        price: float
        tax: Union[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 Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 428 bytes
    - Viewed (0)
  9. docs_src/body_multiple_params/tutorial005_an.py

        name: str
        description: Union[str, None] = None
        price: float
        tax: Union[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 Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 457 bytes
    - Viewed (0)
  10. 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}
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri May 13 23:38:22 UTC 2022
    - 369 bytes
    - Viewed (0)
Back to top