Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 272 for tutorial009_an_py310 (0.12 sec)

  1. docs/zh/docs/tutorial/query-param-models.md

    这将允许你在**多个地方**去**复用模型**,并且一次性为所有参数声明验证和元数据。😎
    
    /// note
    
    FastAPI 从 `0.115.0` 版本开始支持这个特性。🤓
    
    ///
    
    ## 使用 Pydantic 模型的查询参数
    
    在一个 **Pydantic 模型**中声明你需要的**查询参数**,然后将参数声明为 `Query`:
    
    {* ../../docs_src/query_param_models/tutorial001_an_py310.py hl[9:13,17] *}
    
    **FastAPI** 将会从请求的**查询参数**中**提取**出**每个字段**的数据,并将其提供给你定义的 Pydantic 模型。
    
    ## 查看文档
    
    你可以在 `/docs` 页面的 UI 中查看查询参数:
    
    <div class="screenshot">
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Nov 26 22:06:31 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. docs/en/docs/how-to/custom-request-and-route.md

    {* ../../docs_src/custom_request_and_route/tutorial002_an_py310.py hl[14,16] *}
    
    If an exception occurs, the`Request` instance will still be in scope, so we can read and make use of the request body when handling the error:
    
    {* ../../docs_src/custom_request_and_route/tutorial002_an_py310.py hl[17:19] *}
    
    ## Custom `APIRoute` class in a router { #custom-apiroute-class-in-a-router }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 10 08:55:32 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  3. docs_src/additional_status_codes/tutorial001_an_py310.py

    Sebastián Ramírez <******@****.***> 1679142599 +0100
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 686 bytes
    - Viewed (0)
  4. docs_src/websockets/tutorial002_an_py310.py

    Sebastián Ramírez <******@****.***> 1679142599 +0100
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  5. docs_src/header_param_models/tutorial001_an_py310.py

    Sebastián Ramírez <******@****.***> 1726599250 +0200
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 392 bytes
    - Viewed (0)
  6. docs_src/pydantic_v1_in_v2/tutorial002_an_py310.py

    Sebastián Ramírez <******@****.***> 1760201154 +0200
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 16:45:54 UTC 2025
    - 252 bytes
    - Viewed (0)
  7. docs_src/query_param_models/tutorial002_an_py310.py

    Sebastián Ramírez <******@****.***> 1726599250 +0200
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 483 bytes
    - Viewed (0)
  8. docs_src/query_params_str_validations/tutorial003_an_py310.py

    Charlie Marsh <******@****.***> 1711472213 -0400
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Mar 26 16:56:53 UTC 2024
    - 330 bytes
    - Viewed (0)
  9. docs_src/query_params_str_validations/tutorial004_an_py310.py

    Sebastián Ramírez <******@****.***> 1698179166 +0400
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Oct 24 20:26:06 UTC 2023
    - 368 bytes
    - Viewed (0)
  10. docs_src/background_tasks/tutorial002_an_py310.py

    Sebastián Ramírez <******@****.***> 1679142599 +0100
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 683 bytes
    - Viewed (0)
Back to top