Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for 41 (0.29 sec)

  1. docs/en/docs/how-to/custom-docs-ui-assets.md

    ### Create a *path operation* to test static files
    
    Now, to be able to test that everything works, create a *path operation*:
    
    ```Python hl_lines="39-41"
    {!../../../docs_src/custom_docs_ui/tutorial002.py!}
    ```
    
    ### Test Static Files UI
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon Oct 30 09:58:58 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  2. docs/zh/docs/tutorial/extra-models.md

        ```Python hl_lines="7  9  14  20  22  27-28  31-33  38-39"
        {!> ../../../docs_src/extra_models/tutorial001_py310.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="9  11  16  22  24  29-30  33-35  40-41"
        {!> ../../../docs_src/extra_models/tutorial001.py!}
        ```
    
    ### `**user_in.dict()` 简介
    
    #### Pydantic 的 `.dict()`
    
    `user_in` 是类 `UserIn` 的 Pydantic 模型。
    
    Pydantic 模型支持 `.dict()` 方法,能返回包含模型数据的**字典**。
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon Apr 01 01:15:53 GMT 2024
    - 6.7K bytes
    - Viewed (0)
  3. docs/de/docs/tutorial/extra-models.md

        ```Python hl_lines="7  9  14  20  22  27-28  31-33  38-39"
        {!> ../../../docs_src/extra_models/tutorial001_py310.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="9  11  16  22  24  29-30  33-35  40-41"
        {!> ../../../docs_src/extra_models/tutorial001.py!}
        ```
    
    !!! info
        In Pydantic v1 hieß diese Methode `.dict()`, in Pydantic v2 wurde sie deprecated (aber immer noch unterstützt) und in `.model_dump()` umbenannt.
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 20:26:47 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  4. docs/ja/docs/tutorial/extra-models.md

    ## 複数のモデル
    
    ここでは、パスワードフィールドをもつモデルがどのように見えるのか、また、どこで使われるのか、大まかなイメージを紹介します:
    
    ```Python hl_lines="9  11  16  22  24  29-30  33-35  40-41"
    {!../../../docs_src/extra_models/tutorial001.py!}
    ```
    
    ### `**user_in.dict()`について
    
    #### Pydanticの`.dict()`
    
    `user_in`は`UserIn`クラスのPydanticモデルです。
    
    Pydanticモデルには、モデルのデータを含む`dict`を返す`.dict()`メソッドがあります。
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon Jan 15 15:36:32 GMT 2024
    - 6.7K bytes
    - Viewed (0)
  5. docs/pt/docs/tutorial/extra-models.md

    Aqui está uma ideia geral de como os modelos poderiam parecer com seus campos de senha e os lugares onde são usados:
    
    === "Python 3.8 and above"
    
        ```Python hl_lines="9  11  16  22  24  29-30  33-35  40-41"
        {!> ../../../docs_src/extra_models/tutorial001.py!}
        ```
    
    === "Python 3.10 and above"
    
        ```Python hl_lines="7  9  14  20  22  27-28  31-33  38-39"
        {!> ../../../docs_src/extra_models/tutorial001_py310.py!}
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  6. docs/ru/docs/tutorial/extra-models.md

        ```Python hl_lines="7  9  14  20  22  27-28  31-33  38-39"
        {!> ../../../docs_src/extra_models/tutorial001_py310.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="9  11  16  22  24  29-30  33-35  40-41"
        {!> ../../../docs_src/extra_models/tutorial001.py!}
        ```
    
    ### Про `**user_in.dict()`
    
    #### `.dict()` из Pydantic
    
    `user_in` - это Pydantic-модель класса `UserIn`.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  7. docs/em/docs/tutorial/extra-models.md

    ## 💗 🏷
    
    📥 🏢 💭 ❔ 🏷 💪 👀 💖 ⏮️ 👫 🔐 🏑 & 🥉 🌐❔ 👫 ⚙️:
    
    === "🐍 3️⃣.6️⃣ & 🔛"
    
        ```Python hl_lines="9  11  16  22  24  29-30  33-35  40-41"
        {!> ../../../docs_src/extra_models/tutorial001.py!}
        ```
    
    === "🐍 3️⃣.1️⃣0️⃣ & 🔛"
    
        ```Python hl_lines="7  9  14  20  22  27-28  31-33  38-39"
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/extra-models.md

        ```Python hl_lines="7  9  14  20  22  27-28  31-33  38-39"
        {!> ../../../docs_src/extra_models/tutorial001_py310.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="9  11  16  22  24  29-30  33-35  40-41"
        {!> ../../../docs_src/extra_models/tutorial001.py!}
        ```
    
    !!! info
        In Pydantic v1 the method was called `.dict()`, it was deprecated (but still supported) in Pydantic v2, and renamed to `.model_dump()`.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.7K bytes
    - Viewed (1)
  9. docs/de/docs/how-to/custom-docs-ui-assets.md

    ### Eine *Pfadoperation* erstellen, um statische Dateien zu testen
    
    Um nun testen zu können, ob alles funktioniert, erstellen Sie eine *Pfadoperation*:
    
    ```Python hl_lines="39-41"
    {!../../../docs_src/custom_docs_ui/tutorial002.py!}
    ```
    
    ### Benutzeroberfläche, mit statischen Dateien, testen
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 18:17:36 GMT 2024
    - 9.2K bytes
    - Viewed (0)
  10. docs/zh/docs/advanced/extending-openapi.md

        集成 API 与 OAuth2 第三方应用时,您能进行身份验证,使用请求凭证返回 API 文档,并使用真正的 OAuth2 身份验证与 API 文档进行交互操作。
    
        Swagger UI 在后台进行处理,但它需要这个**重定向**辅助函数。
    
    ### 创建测试*路径操作*
    
    现在,测试各项功能是否能顺利运行。创建*路径操作*:
    
    ```Python hl_lines="39-41"
    {!../../../docs_src/extending_openapi/tutorial002.py!}
    ```
    
    ### 测试文档
    
    断开 WiFi 连接,打开 <a href="http://127.0.0.1:8000/docs" class="external-link" target="_blank">http://127.0.0.1:8000/docs,刷新页面。</a>
    
    Plain Text
    - Registered: Sun Mar 31 07:19:09 GMT 2024
    - Last Modified: Sat Mar 30 22:46:12 GMT 2024
    - 7.7K bytes
    - Viewed (0)
Back to top