Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 711 - 720 of 892 for Item (0.1 seconds)

  1. docs/ru/docs/tutorial/server-sent-events.md

    Каждый возвращаемый через `yield` элемент кодируется как JSON и отправляется в поле `data:` события SSE.
    
    Если вы объявите тип возврата как `AsyncIterable[Item]`, FastAPI будет использовать его, чтобы выполнить **валидацию**, добавить **документацию** и **сериализовать** данные с помощью Pydantic.
    
    {* ../../docs_src/server_sent_events/tutorial001_py310.py ln[1:25] hl[10:12,23] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 7.4K bytes
    - Click Count (0)
  2. docs/uk/docs/tutorial/server-sent-events.md

    {* ../../docs_src/server_sent_events/tutorial001_py310.py ln[1:25] hl[4,22] *}
    
    Кожен елемент, повернений через `yield`, кодується як JSON і надсилається в полі `data:` події SSE.
    
    Якщо ви оголосите тип повернення як `AsyncIterable[Item]`, FastAPI використає його, щоб **перевіряти**, **документувати** і **серіалізувати** дані за допомогою Pydantic.
    
    {* ../../docs_src/server_sent_events/tutorial001_py310.py ln[1:25] hl[10:12,23] *}
    
    /// tip | Порада
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:25:54 GMT 2026
    - 7.1K bytes
    - Click Count (0)
  3. docs/zh-hant/docs/tutorial/body.md

    要把它加到你的*路徑操作(path operation)*中,宣告方式與路徑與查詢參數相同:
    
    {* ../../docs_src/body/tutorial001_py310.py hl[16] *}
    
    ...並將其型別宣告為你建立的模型 `Item`。
    
    ## 效果 { #results }
    
    只靠這樣的 Python 型別宣告,**FastAPI** 會:
    
    - 將請求本文讀取為 JSON。
    - (必要時)轉換為對應的型別。
    - 驗證資料。
        - 若資料無效,會回傳清楚易懂的錯誤,指出哪裡、哪筆資料不正確。
    - 把接收到的資料放在參數 `item` 中提供給你。
        - 由於你在函式中將其宣告為 `Item` 型別,你也會獲得完整的編輯器支援(自動完成等)以及所有屬性與其型別。
    - 為你的模型產生 [JSON Schema](https://json-schema.org) 定義,如有需要,你也可以在專案中的其他地方使用。
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 6K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/collect/Iterables.java

       * Queue#isEmpty} and {@link Queue#remove()}, since {@link Queue}'s iteration order is undefined.
       * Calling {@link Iterator#hasNext()} on a generated iterator from the returned iterable may cause
       * an item to be immediately dequeued for return on a subsequent call to {@link Iterator#next()}.
       *
       * <p>Whether the input {@code iterable} is a {@link Queue} or not, the returned {@code Iterable}
       * is not thread-safe.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 16 18:35:28 GMT 2025
    - 43.8K bytes
    - Click Count (0)
  5. LICENSE

    extent that warranties are provided), that licensees may convey the
    work under this License, and how to view a copy of this License.  If
    the interface presents a list of user commands or options, such as a
    menu, a prominent item in the list meets this criterion.
    
      1. Source Code.
    
      The "source code" for a work means the preferred form of the work
    for making modifications to it.  "Object code" means any non-source
    form of a work.
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Apr 23 18:58:53 GMT 2021
    - 33.7K bytes
    - Click Count (0)
  6. docs/fr/docs/tutorial/body-updates.md

    Comme `item.model_dump(exclude_unset=True)`.
    
    Cela génère un `dict` ne contenant que les données définies lors de la création du modèle `item`, en excluant les valeurs par défaut.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 4.9K bytes
    - Click Count (0)
  7. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/ClassDescriptionRenderer.java

            }
            NodeList otherContent = classDoc.getClassSection().getChildNodes();
            for (int i = 0; i < otherContent.getLength(); i++) {
                Node child = otherContent.item(i);
                if (child instanceof Element && !((Element) child).getTagName().equals("section")) {
                    parent.appendChild(document.importNode(child, true));
                }
            }
        }
    
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 4.1K bytes
    - Click Count (0)
  8. docs/fr/docs/tutorial/server-sent-events.md

    Chaque élément produit avec `yield` est encodé en JSON et envoyé dans le champ `data:` d’un événement SSE.
    
    Si vous déclarez le type de retour comme `AsyncIterable[Item]`, FastAPI l’utilisera pour **valider**, **documenter** et **sérialiser** les données avec Pydantic.
    
    {* ../../docs_src/server_sent_events/tutorial001_py310.py ln[1:25] hl[10:12,23] *}
    
    /// tip | Astuce
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:33:45 GMT 2026
    - 5.3K bytes
    - Click Count (0)
  9. docs/zh-hant/docs/advanced/dataclasses.md

    1. 我們仍然從標準的 `dataclasses` 匯入 `field`。
    2. `pydantic.dataclasses` 是 `dataclasses` 的可直接替換版本。
    3. `Author` dataclass 內含一個 `Item` dataclass 的清單。
    4. `Author` dataclass 被用作 `response_model` 參數。
    5. 你可以將其他標準型別註記與 dataclass 一起用作請求本文。
    
       在此例中,它是 `Item` dataclass 的清單。
    6. 這裡我們回傳一個字典,其中的 `items` 是一個 dataclass 清單。
    
       FastAPI 仍能將資料<dfn title="將資料轉換成可傳輸的格式">序列化</dfn>為 JSON。
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 3.8K bytes
    - Click Count (0)
  10. docs/ja/docs/tutorial/query-params.md

          "input": null
        }
      ]
    }
    ```
    
    `needy` は必須のパラメータなので、URLにセットする必要があります:
    
    ```
    http://127.0.0.1:8000/items/foo-item?needy=sooooneedy
    ```
    
    ...これはうまくいくでしょう:
    
    ```JSON
    {
        "item_id": "foo-item",
        "needy": "sooooneedy"
    }
    ```
    
    そして当然、あるパラメータを必須に、あるパラメータにデフォルト値を設定し、またあるパラメータを完全にオプショナルにできます:
    
    {* ../../docs_src/query_params/tutorial006_py310.py hl[8] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 5.6K bytes
    - Click Count (0)
Back to Top