Search Options

Results per page
Sort
Preferred Languages
Advance

Results 431 - 440 of 1,333 for item01 (0.11 sec)

  1. fastapi/applications.py

            from fastapi import FastAPI
            from pydantic import BaseModel
    
            class Item(BaseModel):
                name: str
                description: str | None = None
    
            app = FastAPI()
    
            @app.put("/items/{item_id}")
            def replace_item(item_id: str, item: Item):
                return {"message": "Item replaced", "id": item_id}
            ```
            """
            return self.router.put(
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 17 04:52:31 UTC 2024
    - 172.2K bytes
    - Viewed (0)
  2. docs/features/caching.md

    ```kotlin
    cache.delete()
    ```
     
    ## Pruning the Cache
    
    Pruning the entire Cache to clear space temporarily can be done using evictAll.
    
    ```kotlin
    cache.evictAll()
    ```
    
    Removing individual items can be done using the urls iterator.
    This would be typical after a user initiates a force refresh by a pull to refresh type action.
    
    ```java
        val urlIterator = cache.urls()
        while (urlIterator.hasNext()) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  3. docs/ja/docs/tutorial/query-params-str-validations.md

    {!../../docs_src/query_params_str_validations/tutorial008.py!}
    ```
    
    ## エイリアスパラメータ
    
    パラメータに`item-query`を指定するとします.
    
    以下のような感じです:
    
    ```
    http://127.0.0.1:8000/items/?item-query=foobaritems
    ```
    
    しかし、`item-query`は有効なPythonの変数名ではありません。
    
    最も近いのは`item_query`でしょう。
    
    しかし、どうしても`item-query`と正確に一致している必要があるとします...
    
    それならば、`alias`を宣言することができます。エイリアスはパラメータの値を見つけるのに使用されます:
    
    ```Python hl_lines="9"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  4. docs/de/docs/advanced/generate-clients.md

    In vielen Fällen wird Ihre FastAPI-Anwendung größer sein und Sie werden wahrscheinlich Tags verwenden, um verschiedene Gruppen von *Pfadoperationen* zu separieren.
    
    Beispielsweise könnten Sie einen Abschnitt für **Items (Artikel)** und einen weiteren Abschnitt für **Users (Benutzer)** haben, und diese könnten durch Tags getrennt sein:
    
    //// tab | Python 3.9+
    
    ```Python hl_lines="21  26  34"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  5. docs/zh/docs/advanced/generate-clients.md

    生成的代码仍然存在一些**重复的信息**。
    
    我们已经知道该方法与 **items** 相关,因为它在 `ItemsService` 中(从标签中获取),但方法名中仍然有标签名作为前缀。😕
    
    一般情况下对于OpenAPI,我们可能仍然希望保留它,因为这将确保操作ID是**唯一的**。
    
    但对于生成的客户端,我们可以在生成客户端之前**修改** OpenAPI 操作ID,以使方法名称更加美观和**简洁**。
    
    我们可以将 OpenAPI JSON 下载到一个名为`openapi.json`的文件中,然后使用以下脚本**删除此前缀的标签**:
    
    ```Python
    {!../../docs_src/generate_clients/tutorial004.py!}
    ```
    
    通过这样做,操作ID将从类似于 `items-get_items` 的名称重命名为 `get_items` ,这样客户端生成器就可以生成更简洁的方法名称。
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9K bytes
    - Viewed (0)
  6. src/main/webapp/WEB-INF/view/admin/elevateword/admin_elevateword.jsp

                                                <tbody>
                                                <c:forEach var="data" varStatus="s"
                                                           items="${elevateWordItems}">
                                                    <tr
                                                            data-href="${contextPath}/admin/elevateword/details/4/${f:u(data.id)}">
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Mar 27 06:24:23 UTC 2020
    - 6.6K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/body-nested-models.md

    ```
    
    ////
    
    With this, even if you receive a request with duplicate data, it will be converted to a set of unique items.
    
    And whenever you output that data, even if the source had duplicates, it will be output as a set of unique items.
    
    And it will be annotated / documented accordingly too.
    
    ## Nested Models
    
    Each attribute of a Pydantic model has a type.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  8. docs/de/docs/python-types.md

    <img src="/img/python-types/image05.png">
    
    Ohne Typen ist das fast unmöglich zu erreichen.
    
    Beachten Sie, dass die Variable `item` eines der Elemente in der Liste `items` ist.
    
    Und trotzdem weiß der Editor, dass es sich um ein `str` handelt, und bietet entsprechende Unterstützung.
    
    #### Tupel und Menge
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  9. src/main/webapp/WEB-INF/view/admin/badword/admin_badword.jsp

                                                <tbody>
                                                <c:forEach var="data" varStatus="s"
                                                           items="${badWordItems}">
                                                    <tr
                                                            data-href="${contextPath}/admin/badword/details/4/${f:u(data.id)}">
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Wed Feb 12 20:25:27 UTC 2020
    - 6.5K bytes
    - Viewed (0)
  10. common-protos/k8s.io/api/policy/v1/generated.proto

      // +optional
      optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
    
      // Items is a list of PodDisruptionBudgets
      repeated PodDisruptionBudget items = 2;
    }
    
    // PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.
    message PodDisruptionBudgetSpec {
      // An eviction is allowed if at least "minAvailable" pods selected by
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 8K bytes
    - Viewed (0)
Back to top