Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for Raines (0.26 sec)

  1. docs/de/docs/tutorial/path-params.md

    ```JSON
    {"item_id":"foo"}
    ```
    
    ## Pfad-Parameter mit Typen
    
    Sie können den Typ eines Pfad-Parameters in der Argumentliste der Funktion deklarieren, mit Standard-Python-Typannotationen:
    
    ```Python hl_lines="7"
    {!../../../docs_src/path_params/tutorial002.py!}
    ```
    
    In diesem Fall wird `item_id` als `int` deklariert, also als Ganzzahl.
    
    !!! check
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 20:28:59 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  2. docs/em/docs/tutorial/path-params.md

    ↩️ *➡ 🛠️* 🔬 ✔, 👆 💪 ⚒ 💭 👈 ➡ `/users/me` 📣 ⏭ 1️⃣ `/users/{user_id}`:
    
    ```Python hl_lines="6  11"
    {!../../../docs_src/path_params/tutorial003.py!}
    ```
    
    ⏪, ➡ `/users/{user_id}` 🔜 🏏 `/users/me`, "💭" 👈 ⚫️ 📨 🔢 `user_id` ⏮️ 💲 `"me"`.
    
    ➡, 👆 🚫🔜 ↔ ➡ 🛠️:
    
    ```Python hl_lines="6  11"
    {!../../../docs_src/path_params/tutorial003b.py!}
    ```
    
    🥇 🕐 🔜 🕧 ⚙️ ↩️ ➡ 🏏 🥇.
    
    ## 🔁 💲
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/path-params.md

    ```Python hl_lines="6  11"
    {!../../../docs_src/path_params/tutorial003.py!}
    ```
    
    Otherwise, the path for `/users/{user_id}` would match also for `/users/me`, "thinking" that it's receiving a parameter `user_id` with a value of `"me"`.
    
    Similarly, you cannot redefine a path operation:
    
    ```Python hl_lines="6  11"
    {!../../../docs_src/path_params/tutorial003b.py!}
    ```
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  4. docs/ru/docs/tutorial/path-params.md

    
    ```Python hl_lines="6  11"
    {!../../../docs_src/path_params/tutorial003.py!}
    ```
    
    Иначе путь для `/users/{user_id}` также будет соответствовать `/users/me`, "подразумевая", что он получает параметр `user_id` со значением `"me"`.
    
    Аналогично, вы не можете переопределить операцию с путем:
    
    ```Python hl_lines="6  11"
    {!../../../docs_src/path_params/tutorial003b.py!}
    ```
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  5. docs/zh/docs/tutorial/path-params.md

    ```Python hl_lines="6-7"
    {!../../../docs_src/path_params/tutorial001.py!}
    ```
    
    这段代码把路径参数 `item_id` 的值传递给路径函数的参数 `item_id`。
    
    运行示例并访问 <a href="http://127.0.0.1:8000/items/foo" class="external-link" target="_blank">http://127.0.0.1:8000/items/foo</a>,可获得如下响应:
    
    ```JSON
    {"item_id":"foo"}
    ```
    
    ## 声明路径参数的类型
    
    使用 Python 标准类型注解,声明路径操作函数中路径参数的类型。
    
    ```Python hl_lines="7"
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon Apr 01 05:35:40 GMT 2024
    - 7.6K bytes
    - Viewed (0)
  6. docs/fr/docs/tutorial/path-params.md

    ```Python hl_lines="17"
    {!../../../docs_src/path_params/tutorial005.py!}
    ```
    
    #### Récupérer la *valeur de l'énumération*
    
    Vous pouvez obtenir la valeur réel d'un membre (une chaîne de caractères ici), avec `model_name.value`, ou en général, `votre_membre_d'enum.value` :
    
    ```Python hl_lines="20"
    {!../../../docs_src/path_params/tutorial005.py!}
    ```
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 10K bytes
    - Viewed (0)
Back to top