Search Options

Results per page
Sort
Preferred Languages
Advance

Results 231 - 240 of 707 for punt (0.05 sec)

  1. docs_src/body_multiple_params/tutorial002_py310.py

    class Item(BaseModel):
        name: str
        description: str | None = None
        price: float
        tax: float | None = None
    
    
    class User(BaseModel):
        username: str
        full_name: str | None = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item, user: User):
        results = {"item_id": item_id, "item": item, "user": user}
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Fri Jan 07 14:11:31 UTC 2022
    - 446 bytes
    - Viewed (0)
  2. docs/es/docs/advanced/path-operation-advanced-configuration.md

    Puedes limitar las líneas usadas desde el docstring de una *operación de path* para OpenAPI.
    
    Agregar un `\f` (un carácter de "form feed" escapado) hace que **FastAPI** trunque el output utilizada para OpenAPI en ese punto.
    
    No será mostrado en la documentación, pero otras herramientas (como Sphinx) serán capaces de usar el resto.
    
    ```Python hl_lines="19 20 21 22 23 24 25 26 27 28 29"
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  3. docs_src/body_nested_models/tutorial005.py

    
    class Item(BaseModel):
        name: str
        description: Union[str, None] = None
        price: float
        tax: Union[float, None] = None
        tags: Set[str] = set()
        image: Union[Image, None] = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item):
        results = {"item_id": item_id, "item": item}
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 517 bytes
    - Viewed (0)
  4. docs_src/body_nested_models/tutorial006_py39.py

    class Item(BaseModel):
        name: str
        description: Union[str, None] = None
        price: float
        tax: Union[float, None] = None
        tags: set[str] = set()
        images: Union[list[Image], None] = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item):
        results = {"item_id": item_id, "item": item}
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 519 bytes
    - Viewed (0)
  5. docs_src/body_fields/tutorial001_an_py310.py

            default=None, title="The description of the item", max_length=300
        )
        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 Oct 27 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 563 bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/helper/RelatedContentHelper.java

                if (pair == null) {
                    pair = new Pair<>(new HashMap<>(), new ArrayList<>());
                    relatedContentMap.put(key, pair);
                }
                if (entity.getTerm().startsWith(regexPrefix)) {
                    final String regex = entity.getTerm().substring(regexPrefix.length());
                    if (StringUtil.isBlank(regex)) {
    Registered: Mon Oct 28 08:04:08 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  7. docs/he/docs/index.md

    -   לאמת שיש `item_id` בנתיב בבקשות `GET` ו - `PUT`.
    -   לאמת שה - `item_id` הוא מטיפוס `int` בבקשות `GET` ו - `PUT`.
        -   אם הוא לא, הלקוח יראה שגיאה ברורה ושימושית.
    -   לבדוק האם קיים פרמטר שאילתא בשם `q` (קרי `http://127.0.0.1:8000/items/foo?q=somequery`) לבקשות `GET`.
        -   מאחר והפרמטר `q` מוגדר עם <code dir="ltr"> = None</code>, הוא אופציונלי.
        -   לולא ה - `None` הוא היה חובה (כמו הגוף במקרה של `PUT`).
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Sun Oct 20 19:20:23 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  8. docs/em/docs/index.md

    ---
    
    👟 🔙 ⏮️ 📟 🖼, **FastAPI** 🔜:
    
    * ✔ 👈 📤 `item_id` ➡ `GET` &amp; `PUT` 📨.
    * ✔ 👈 `item_id` 🆎 `int` `GET` &amp; `PUT` 📨.
        * 🚥 ⚫️ 🚫, 👩‍💻 🔜 👀 ⚠, 🆑 ❌.
    * ✅ 🚥 📤 📦 🔢 🔢 📛 `q` ( `http://127.0.0.1:8000/items/foo?q=somequery`) `GET` 📨.
        *  `q` 🔢 📣 ⏮️ `= None`, ⚫️ 📦.
        * 🍵 `None` ⚫️ 🔜 🚚 (💪 💼 ⏮️ `PUT`).
    *  `PUT` 📨 `/items/{item_id}`, ✍ 💪 🎻:
        * ✅ 👈 ⚫️ ✔️ ✔ 🔢 `name` 👈 🔜 `str`.
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Sun Oct 20 19:20:23 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  9. docs_src/schema_extra_example/tutorial001.py

                        "description": "A very nice Item",
                        "price": 35.4,
                        "tax": 3.2,
                    }
                ]
            }
        }
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item):
        results = {"item_id": item_id, "item": item}
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 684 bytes
    - Viewed (0)
  10. docs_src/body/tutorial004.py

    from pydantic import BaseModel
    
    
    class Item(BaseModel):
        name: str
        description: Union[str, None] = None
        price: float
        tax: Union[float, None] = None
    
    
    app = FastAPI()
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item, q: Union[str, None] = None):
        result = {"item_id": item_id, **item.dict()}
        if q:
            result.update({"q": q})
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Tue Jan 09 14:28:58 UTC 2024
    - 452 bytes
    - Viewed (0)
Back to top