Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for item (0.17 sec)

  1. docs/de/docs/tutorial/bigger-applications.md

    ## Ein weiteres Modul mit `APIRouter`.
    
    Nehmen wir an, Sie haben im Modul unter `app/routers/items.py` auch die Endpunkte, die für die Verarbeitung von Artikeln („Items“) aus Ihrer Anwendung vorgesehen sind.
    
    Sie haben *Pfadoperationen* für:
    
    * `/items/`
    * `/items/{item_id}`
    
    Es ist alles die gleiche Struktur wie bei `app/routers/users.py`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:27:59 GMT 2024
    - 21.1K bytes
    - Viewed (0)
  2. docs/em/docs/tutorial/bigger-applications.md

    ```Python hl_lines="5-10  16  21" title="app/routers/items.py"
    {!../../../docs_src/bigger_applications/app/routers/items.py!}
    ```
    
    ➡ 🔠 *➡ 🛠️* ✔️ ▶️ ⏮️ `/`, 💖:
    
    ```Python hl_lines="1"
    @router.get("/{item_id}")
    async def read_item(item_id: str):
        ...
    ```
    
    ...🔡 🔜 🚫 🔌 🏁 `/`.
    
    , 🔡 👉 💼 `/items`.
    
    👥 💪 🚮 📇 `tags` & ➕ `responses` 👈 🔜 ✔ 🌐 *➡ 🛠️* 🔌 👉 📻.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 15.6K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/bigger-applications.md

    The end result is that the item paths are now:
    
    * `/items/`
    * `/items/{item_id}`
    
    ...as we intended.
    
    * They will be marked with a list of tags that contain a single string `"items"`.
        * These "tags" are especially useful for the automatic interactive documentation systems (using OpenAPI).
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  4. docs/zh/docs/tutorial/bigger-applications.md

    ```Python hl_lines="5-10  16  21" title="app/routers/items.py"
    {!../../../docs_src/bigger_applications/app/routers/items.py!}
    ```
    
    由于每个*路径操作*的路径都必须以 `/` 开头,例如:
    
    ```Python hl_lines="1"
    @router.get("/{item_id}")
    async def read_item(item_id: str):
        ...
    ```
    
    ...前缀不能以 `/` 作为结尾。
    
    因此,本例中的前缀为 `/items`。
    
    我们还可以添加一个 `tags` 列表和额外的 `responses` 列表,这些参数将应用于此路由器中包含的所有*路径操作*。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 18.5K bytes
    - Viewed (0)
Back to top