Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 327 for tutorial006_py310 (0.07 sec)

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

    ///
    
    ## 添加输出模型
    
    相反,我们可以创建一个有明文密码的输入模型和一个没有明文密码的输出模型:
    
    {* ../../docs_src/response_model/tutorial003_py310.py hl[9,11,16] *}
    
    这样,即便我们的*路径操作函数*将会返回包含密码的相同输入用户:
    
    {* ../../docs_src/response_model/tutorial003_py310.py hl[24] *}
    
    ...我们已经将 `response_model` 声明为了不包含密码的 `UserOut` 模型:
    
    {* ../../docs_src/response_model/tutorial003_py310.py hl[22] *}
    
    因此,**FastAPI** 将会负责过滤掉未在输出模型中声明的所有数据(使用 Pydantic)。
    
    ## 在文档中查看
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  2. docs/pt/docs/tutorial/schema-extra-example.md

    Você pode declarar `examples` para um modelo Pydantic que serão adicionados ao JSON Schema gerado.
    
    //// tab | Pydantic v2
    
    {* ../../docs_src/schema_extra_example/tutorial001_py310.py hl[13:24] *}
    
    ////
    
    //// tab | Pydantic v1
    
    {* ../../docs_src/schema_extra_example/tutorial001_pv1_py310.py hl[13:23] *}
    
    ////
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Nov 12 16:23:57 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  3. docs/es/docs/tutorial/schema-extra-example.md

    Puedes declarar `examples` para un modelo de Pydantic que se añadirá al JSON Schema generado.
    
    //// tab | Pydantic v2
    
    {* ../../docs_src/schema_extra_example/tutorial001_py310.py hl[13:24] *}
    
    ////
    
    //// tab | Pydantic v1
    
    {* ../../docs_src/schema_extra_example/tutorial001_pv1_py310.py hl[13:23] *}
    
    ////
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  4. docs/ru/docs/advanced/path-operation-advanced-configuration.md

    Эта часть не попадёт в документацию, но другие инструменты (например, Sphinx) смогут использовать остальное.
    
    {* ../../docs_src/path_operation_advanced_configuration/tutorial004_py310.py hl[17:27] *}
    
    ## Дополнительные ответы { #additional-responses }
    
    Вы, вероятно, уже видели, как объявлять `response_model` и `status_code` для *операции пути*.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  5. docs/pt/docs/python-types.md

    Isso também significa que no Python 3.10, você pode utilizar `Something | None`:
    
    //// tab | Python 3.10+
    
    ```Python hl_lines="1"
    {!> ../../docs_src/python_types/tutorial009_py310.py!}
    ```
    
    ////
    
    //// tab | Python 3.9+
    
    ```Python hl_lines="1  4"
    {!> ../../docs_src/python_types/tutorial009_py39.py!}
    ```
    
    ////
    
    //// tab | Python 3.9+ alternativa
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  6. docs/es/docs/python-types.md

    Esto también significa que en Python 3.10, puedes usar `Something | None`:
    
    //// tab | Python 3.10+
    
    ```Python hl_lines="1"
    {!> ../../docs_src/python_types/tutorial009_py310.py!}
    ```
    
    ////
    
    //// tab | Python 3.9+
    
    ```Python hl_lines="1  4"
    {!> ../../docs_src/python_types/tutorial009_py39.py!}
    ```
    
    ////
    
    //// tab | Python 3.9+ alternativa
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 16.4K bytes
    - Viewed (1)
  7. docs/uk/docs/tutorial/schema-extra-example.md

    ## Додаткові дані JSON-схеми в моделях Pydantic
    
    Ви можете задати `examples` для моделі Pydantic, які буде додано до згенерованої JSON-схеми.
    
    //// tab | Pydantic v2
    
    {* ../../docs_src/schema_extra_example/tutorial001_py310.py hl[13:24] *}
    
    ////
    
    //// tab | Pydantic v1
    
    {* ../../docs_src/schema_extra_example/tutorial001_pv1_py310.py hl[13:23] *}
    
    ////
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Jun 09 19:35:48 UTC 2025
    - 13.4K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/schema-extra-example.md

    You can declare `examples` for a Pydantic model that will be added to the generated JSON Schema.
    
    {* ../../docs_src/schema_extra_example/tutorial001_py310.py hl[13:24] *}
    
    That extra info will be added as-is to the output **JSON Schema** for that model, and it will be used in the API docs.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  9. docs/es/docs/advanced/additional-responses.md

    Por ejemplo, puedes agregar un media type adicional de `image/png`, declarando que tu *path operation* puede devolver un objeto JSON (con media type `application/json`) o una imagen PNG:
    
    {* ../../docs_src/additional_responses/tutorial002_py310.py hl[17:22,26] *}
    
    /// note | Nota
    
    Nota que debes devolver la imagen usando un `FileResponse` directamente.
    
    ///
    
    /// info | Información
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  10. docs/de/docs/advanced/additional-responses.md

    {* ../../docs_src/additional_responses/tutorial002_py310.py hl[17:22,26] *}
    
    /// note | Hinweis
    
    Beachten Sie, dass Sie das Bild direkt mit einer `FileResponse` zurückgeben müssen.
    
    ///
    
    /// info | Info
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 10K bytes
    - Viewed (0)
Back to top