Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for PATCH (0.28 sec)

  1. docs/zh/docs/tutorial/body-updates.md

    ```
    
    因为上述数据未包含已存储的属性 `"tax": 20.2`,新的输入模型会把 `"tax": 10.5` 作为默认值。
    
    因此,本次操作把 `tax` 的值「更新」为 `10.5`。
    
    ## 用 `PATCH` 进行部分更新
    
    <a href="https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Methods/PATCH" class="external-link" target="_blank">HTTP `PATCH`</a> 操作用于更新 *部分* 数据。
    
    即,只发送要更新的数据,其余数据保持不变。
    
    !!! note "笔记"
    
        `PATCH` 没有 `PUT` 知名,也怎么不常用。
    
        很多人甚至只用 `PUT` 实现部分更新。
    
        **FastAPI** 对此没有任何限制,可以**随意**互换使用这两种操作。
    
    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)
  2. docs/en/docs/deployment/versions.md

    Following the Semantic Versioning conventions, any version below `1.0.0` could potentially add breaking changes.
    
    FastAPI also follows the convention that any "PATCH" version change is for bug fixes and non-breaking changes.
    
    !!! tip
        The "PATCH" is the last number, for example, in `0.2.3`, the PATCH version is `3`.
    
    So, you should be able to pin to a version like:
    
    ```txt
    fastapi>=0.45.0,<0.46.0
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Nov 05 20:50:37 GMT 2020
    - 3.3K bytes
    - Viewed (0)
  3. docs/fr/docs/deployment/versions.md

    des changements non rétrocompatibles.
    
    FastAPI suit également la convention que tout changement de version "PATCH" est pour des corrections de bogues et
    des changements rétrocompatibles.
    
    !!! tip "Astuce"
        Le "PATCH" est le dernier chiffre, par exemple, dans `0.2.3`, la version PATCH est `3`.
    
    Donc, vous devriez être capable d'épingler une version comme suit :
    
    ```txt
    fastapi>=0.45.0,<0.46.0
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Oct 31 17:39:54 GMT 2022
    - 4K bytes
    - Viewed (0)
  4. docs/de/docs/reference/fastapi.md

                - openapi
                - websocket
                - include_router
                - get
                - put
                - post
                - delete
                - options
                - head
                - patch
                - trace
                - on_event
                - middleware
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Feb 18 12:19:32 GMT 2024
    - 715 bytes
    - Viewed (0)
  5. tests/test_operations_signatures.py

    import inspect
    
    from fastapi import APIRouter, FastAPI
    
    method_names = ["get", "put", "post", "delete", "options", "head", "patch", "trace"]
    
    
    def test_signatures_consistency():
        base_sig = inspect.signature(APIRouter.get)
        for method_name in method_names:
            router_method = getattr(APIRouter, method_name)
            app_method = getattr(FastAPI, method_name)
            router_sig = inspect.signature(router_method)
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon May 27 12:08:13 GMT 2019
    - 934 bytes
    - Viewed (0)
  6. docs_src/body_updates/tutorial002.py

        "baz": {"name": "Baz", "description": None, "price": 50.2, "tax": 10.5, "tags": []},
    }
    
    
    @app.get("/items/{item_id}", response_model=Item)
    async def read_item(item_id: str):
        return items[item_id]
    
    
    @app.patch("/items/{item_id}", response_model=Item)
    async def update_item(item_id: str, item: Item):
        stored_item_data = items[item_id]
        stored_item_model = Item(**stored_item_data)
        update_data = item.dict(exclude_unset=True)
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat May 14 11:59:59 GMT 2022
    - 1K bytes
    - Viewed (0)
  7. docs/em/docs/tutorial/first-steps.md

    #### 🛠️
    
    "🛠️" 📥 🔗 1️⃣ 🇺🇸🔍 "👩‍🔬".
    
    1️⃣:
    
    * `POST`
    * `GET`
    * `PUT`
    * `DELETE`
    
    ...&amp; 🌅 😍 🕐:
    
    * `OPTIONS`
    * `HEAD`
    * `PATCH`
    * `TRACE`
    
    🇺🇸🔍 🛠️, 👆 💪 🔗 🔠 ➡ ⚙️ 1️⃣ (⚖️ 🌅) 👫 "👩‍🔬".
    
    ---
    
    🕐❔ 🏗 🔗, 👆 🛎 ⚙️ 👫 🎯 🇺🇸🔍 👩‍🔬 🎭 🎯 🎯.
    
    🛎 👆 ⚙️:
    
    * `POST`: ✍ 💽.
    * `GET`: ✍ 💽.
    * `PUT`: ℹ 💽.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  8. docs/ru/docs/tutorial/body-updates.md

    ## Частичное обновление с помощью `PATCH`
    
    Также можно использовать <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/PATCH" class="external-link" target="_blank">HTTP `PATCH`</a> операцию для *частичного* обновления данных.
    
    Это означает, что можно передавать только те данные, которые необходимо обновить, оставляя остальные нетронутыми.
    
    !!! note "Технические детали"
        `PATCH` менее распространен и известен, чем `PUT`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 23 13:55:32 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  9. docs/de/docs/deployment/versions.md

    FastAPI folgt auch der Konvention, dass jede „PATCH“-Versionsänderung für Bugfixes und abwärtskompatible Änderungen gedacht ist.
    
    !!! tip "Tipp"
        Der „PATCH“ ist die letzte Zahl, zum Beispiel ist in `0.2.3` die PATCH-Version `3`.
    
    Sie sollten also in der Lage sein, eine Version wie folgt anzupinnen:
    
    ```txt
    fastapi>=0.45.0,<0.46.0
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:06:38 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  10. docs/zh/docs/tutorial/first-steps.md

    开发 API 时,「路径」是用来分离「关注点」和「资源」的主要手段。
    
    #### 操作
    
    这里的「操作」指的是一种 HTTP「方法」。
    
    下列之一:
    
    * `POST`
    * `GET`
    * `PUT`
    * `DELETE`
    
    ...以及更少见的几种:
    
    * `OPTIONS`
    * `HEAD`
    * `PATCH`
    * `TRACE`
    
    在 HTTP 协议中,你可以使用以上的其中一种(或多种)「方法」与每个路径进行通信。
    
    ---
    
    在开发 API 时,你通常使用特定的 HTTP 方法去执行特定的行为。
    
    通常使用:
    
    * `POST`:创建数据。
    * `GET`:读取数据。
    * `PUT`:更新数据。
    * `DELETE`:删除数据。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 12 00:06:16 GMT 2022
    - 9.2K bytes
    - Viewed (0)
Back to top