Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 877 for tutorial002 (0.12 sec)

  1. docs/ko/docs/tutorial/response-model.md

    ```Python hl_lines="9  11  16"
    {!../../docs_src/response_model/tutorial003.py!}
    ```
    
    여기서 *경로 작동 함수*가 비밀번호를 포함하는 동일한 입력 사용자를 반환할지라도:
    
    ```Python hl_lines="24"
    {!../../docs_src/response_model/tutorial003.py!}
    ```
    
    ...`response_model`을 `UserOut` 모델로 선언했기 때문에 비밀번호를 포함하지 않습니다:
    
    ```Python hl_lines="22"
    {!../../docs_src/response_model/tutorial003.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/path-operation-configuration.md

    ```Python hl_lines="17  22  27"
    {!> ../../docs_src/path_operation_configuration/tutorial002_py39.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="17  22  27"
    {!> ../../docs_src/path_operation_configuration/tutorial002.py!}
    ```
    
    ////
    
    They will be added to the OpenAPI schema and used by the automatic documentation interfaces:
    
    <img src="/img/tutorial/path-operation-configuration/image01.png">
    
    ### Tags with Enums
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  3. docs/em/docs/tutorial/body-nested-models.md

    🐍 3️⃣.9️⃣ &amp; 🔛 👆 💪 ⚙️ 🐩 `list` 📣 👫 🆎 ✍ 👥 🔜 👀 🔛. 👶
    
    ✋️ 🐍 ⏬ ⏭ 3️⃣.9️⃣ (3️⃣.6️⃣ &amp; 🔛), 👆 🥇 💪 🗄 `List` ⚪️➡️ 🐩 🐍 `typing` 🕹:
    
    ```Python hl_lines="1"
    {!> ../../docs_src/body_nested_models/tutorial002.py!}
    ```
    
    ### 📣 `list` ⏮️ 🆎 🔢
    
    📣 🆎 👈 ✔️ 🆎 🔢 (🔗 🆎), 💖 `list`, `dict`, `tuple`:
    
    * 🚥 👆 🐍 ⏬ 🔅 🌘 3️⃣.9️⃣, 🗄 👫 🌓 ⏬ ⚪️➡️ `typing` 🕹
    * 🚶‍♀️ 🔗 🆎(Ⓜ) "🆎 🔢" ⚙️ ⬜ 🗜: `[` &amp; `]`
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  4. docs/em/docs/tutorial/dependencies/classes-as-dependencies.md

    ```Python hl_lines="11-15"
    {!> ../../docs_src/dependencies/tutorial002.py!}
    ```
    
    ////
    
    //// tab | 🐍 3️⃣.1️⃣0️⃣ &amp; 🔛
    
    ```Python hl_lines="9-13"
    {!> ../../docs_src/dependencies/tutorial002_py310.py!}
    ```
    
    ////
    
    💸 🙋 `__init__` 👩‍🔬 ⚙️ ✍ 👐 🎓:
    
    //// tab | 🐍 3️⃣.6️⃣ &amp; 🔛
    
    ```Python hl_lines="12"
    {!> ../../docs_src/dependencies/tutorial002.py!}
    ```
    
    ////
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  5. docs/zh/docs/tutorial/security/get-current-user.md

    ```Python hl_lines="25"
    {!../../docs_src/security/tutorial002.py!}
    ```
    
    ## 获取用户
    
    `get_current_user` 使用创建的(伪)工具函数,该函数接收 `str` 类型的令牌,并返回 Pydantic 的 `User` 模型:
    
    ```Python hl_lines="19-22  26-27"
    {!../../docs_src/security/tutorial002.py!}
    ```
    
    ## 注入当前用户
    
    在*路径操作* 的 `Depends` 中使用 `get_current_user`:
    
    ```Python hl_lines="31"
    {!../../docs_src/security/tutorial002.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  6. docs/de/docs/how-to/custom-request-and-route.md

    ```Python hl_lines="13  15"
    {!../../docs_src/custom_request_and_route/tutorial002.py!}
    ```
    
    Wenn eine Exception auftritt, befindet sich die `Request`-Instanz weiterhin im Gültigkeitsbereich, sodass wir den Requestbody lesen und bei der Fehlerbehandlung verwenden können:
    
    ```Python hl_lines="16-18"
    {!../../docs_src/custom_request_and_route/tutorial002.py!}
    ```
    
    ## Benutzerdefinierte `APIRoute`-Klasse in einem Router
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  7. docs/em/docs/tutorial/path-params-numeric-validations.md

    ```Python hl_lines="7"
    {!../../docs_src/path_params_numeric_validations/tutorial003.py!}
    ```
    
    ## 🔢 🔬: 👑 🌘 ⚖️ 🌓
    
    ⏮️ `Query` &amp; `Path` (&amp; 🎏 👆 🔜 👀 ⏪) 👆 💪 📣 🔢 ⚛.
    
    📥, ⏮️ `ge=1`, `item_id` 🔜 💪 🔢 🔢 "`g`🅾 🌘 ⚖️ `e`🅾" `1`.
    
    ```Python hl_lines="8"
    {!../../docs_src/path_params_numeric_validations/tutorial004.py!}
    ```
    
    ## 🔢 🔬: 🌘 🌘 &amp; 🌘 🌘 ⚖️ 🌓
    
    🎏 ✔:
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  8. docs/ko/docs/tutorial/query-params-str-validations.md

    ### `Query` 임포트
    
    이를 위해 먼저 `fastapi`에서 `Query`를 임포트합니다:
    
    ```Python hl_lines="3"
    {!../../docs_src/query_params_str_validations/tutorial002.py!}
    ```
    
    ## 기본값으로 `Query` 사용
    
    이제 `Query`를 매개변수의 기본값으로 사용하여 `max_length` 매개변수를 50으로 설정합니다:
    
    ```Python hl_lines="9"
    {!../../docs_src/query_params_str_validations/tutorial002.py!}
    ```
    
    기본값 `None`을 `Query(None)`으로 바꿔야 하므로, `Query`의 첫 번째 매개변수는 기본값을 정의하는 것과 같은 목적으로 사용됩니다.
    
    그러므로:
    
    ```Python
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  9. docs/ru/docs/tutorial/body-nested-models.md

    Но в версиях Python до 3.9 (начиная с 3.6) сначала вам необходимо импортировать `List` из стандартного модуля `typing` в Python:
    
    ```Python hl_lines="1"
    {!> ../../docs_src/body_nested_models/tutorial002.py!}
    ```
    
    ### Объявление `list` с указанием типов для вложенных элементов
    
    Объявление типов для элементов (внутренних типов) вложенных в такие типы как `list`, `dict`, `tuple`:
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  10. docs/ko/docs/tutorial/body-nested-models.md

    ```Python hl_lines="14"
    {!../../docs_src/body_nested_models/tutorial001.py!}
    ```
    
    이는 `tags`를 항목 리스트로 만듭니다. 각 항목의 타입을 선언하지 않더라도요.
    
    ## 타입 매개변수가 있는 리스트 필드
    
    하지만 파이썬은 내부의 타입이나 "타입 매개변수"를 선언할 수 있는 특정 방법이 있습니다:
    
    ### typing의 `List` 임포트
    
    먼저, 파이썬 표준 `typing` 모듈에서 `List`를 임포트합니다:
    
    ```Python hl_lines="1"
    {!../../docs_src/body_nested_models/tutorial002.py!}
    ```
    
    ### 타입 매개변수로 `List` 선언
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top