Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for custom (8.31 sec)

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

    ```Python hl_lines="30-31" title="app/routers/items.py"
    {!../../../docs_src/bigger_applications/app/routers/items.py!}
    ```
    
    !!! tip
        👉 🏁 ➡ 🛠️ 🔜 ✔️ 🌀 🔖: `["items", "custom"]`.
    
         & ⚫️ 🔜 ✔️ 👯‍♂️ 📨 🧾, 1️⃣ `404` & 1️⃣ `403`.
    
    ## 👑 `FastAPI`
    
    🔜, ➡️ 👀 🕹 `app/main.py`.
    
    📥 🌐❔ 👆 🗄 & ⚙️ 🎓 `FastAPI`.
    
    👉 🔜 👑 📁 👆 🈸 👈 👔 🌐 👯‍♂️.
    
    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)
  2. docs/de/docs/tutorial/bigger-applications.md

    ```Python hl_lines="30-31" title="app/routers/items.py"
    {!../../../docs_src/bigger_applications/app/routers/items.py!}
    ```
    
    !!! tip "Tipp"
        Diese letzte Pfadoperation wird eine Kombination von Tags haben: `["items", "custom"]`.
    
        Und sie wird auch beide Responses in der Dokumentation haben, eine für `404` und eine für `403`.
    
    ## Das Haupt-`FastAPI`.
    
    Sehen wir uns nun das Modul unter `app/main.py` an.
    
    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)
  3. docs/en/docs/tutorial/bigger-applications.md

    We see that we are going to need some dependencies used in several places of the application.
    
    So we put them in their own `dependencies` module (`app/dependencies.py`).
    
    We will now use a simple dependency to read a custom `X-Token` header:
    
    === "Python 3.9+"
    
        ```Python hl_lines="3  6-8" title="app/dependencies.py"
        {!> ../../../docs_src/bigger_applications/app_an_py39/dependencies.py!}
        ```
    
    === "Python 3.8+"
    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="30-31" title="app/routers/items.py"
    {!../../../docs_src/bigger_applications/app/routers/items.py!}
    ```
    
    !!! tip
        最后的这个路径操作将包含标签的组合:`["items","custom"]`。
    
        并且在文档中也会有两个响应,一个用于 `404`,一个用于 `403`。
    
    ## `FastAPI` 主体
    
    现在,让我们来看看位于 `app/main.py` 的模块。
    
    在这里你导入并使用 `FastAPI` 类。
    
    这将是你的应用程序中将所有内容联结在一起的主文件。
    
    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