Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 164 for tutorial001_02_py310 (0.06 sec)

  1. docs_src/request_files/tutorial001_02_py310.py

    Sebastián Ramírez <******@****.***> 1652485102 -0500
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri May 13 23:38:22 UTC 2022
    - 470 bytes
    - Viewed (0)
  2. tests/test_tutorial/test_request_files/test_tutorial001_02.py

    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    
    from ...utils import needs_py310
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial001_02_py39"),
            pytest.param("tutorial001_02_py310", marks=needs_py310),
            pytest.param("tutorial001_02_an_py39"),
            pytest.param("tutorial001_02_an_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  3. docs/zh/docs/tutorial/request-files.md

    这不是 **FastAPI** 的问题,而是 HTTP 协议的规定。
    
    ///
    
    ## 可选文件上传
    
    您可以通过使用标准类型注解并将 None 作为默认值的方式将一个文件参数设为可选:
    
    {* ../../docs_src/request_files/tutorial001_02_py310.py hl[7,14] *}
    
    ## 带有额外元数据的 `UploadFile`
    
    您也可以将 `File()` 与 `UploadFile` 一起使用,例如,设置额外的元数据:
    
    {* ../../docs_src/request_files/tutorial001_03.py hl[13] *}
    
    ## 多文件上传
    
    FastAPI 支持同时上传多个文件。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/response-model.md

    You can use **type annotations** the same way you would for input data in function **parameters**, you can use Pydantic models, lists, dictionaries, scalar values like integers, booleans, etc.
    
    {* ../../docs_src/response_model/tutorial001_01_py310.py hl[16,21] *}
    
    FastAPI will use this return type to:
    
    * **Validate** the returned data.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  5. docs/pt/docs/tutorial/response-model.md

    {* ../../docs_src/response_model/tutorial001_01_py310.py hl[16,21] *}
    
    O FastAPI usará este tipo de retorno para:
    
    * **Validar** os dados retornados.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  6. docs_src/response_model/tutorial003_05_py310.py

    Sebastián Ramírez <******@****.***> 1673367767 +0400
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Jan 10 16:22:47 UTC 2023
    - 373 bytes
    - Viewed (0)
  7. docs_src/cookie_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
    - 343 bytes
    - Viewed (0)
  8. docs_src/dependency_testing/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
    - 1.5K bytes
    - Viewed (0)
  9. docs/uk/docs/tutorial/response-model.md

    {* ../../docs_src/response_model/tutorial001_01_py310.py hl[16,21] *}
    
    FastAPI використовуватиме цей тип, щоб:
    
    * **Перевірити правильність** повернених даних.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Jun 24 19:14:01 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  10. docs/ru/docs/tutorial/response-model.md

    Вы можете использовать **аннотации типов** так же, как и для входных данных в **параметрах** функции: Pydantic-модели, списки, словари, скалярные значения (целые числа, булевы и т.д.).
    
    {* ../../docs_src/response_model/tutorial001_01_py310.py hl[16,21] *}
    
    FastAPI будет использовать этот тип ответа для:
    
    * **Валидации** возвращаемых данных.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 25.8K bytes
    - Viewed (0)
Back to top