Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 131 - 140 of 164 for tutorial001_02_py310 (0.14 seconds)

  1. tests/test_tutorial/test_cookie_param_models/test_tutorial001.py

    
    @pytest.fixture(
        name="client",
        params=[
            "tutorial001_py39",
            pytest.param("tutorial001_py310", marks=needs_py310),
            "tutorial001_an_py39",
            pytest.param("tutorial001_an_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.cookie_param_models.{request.param}")
    
        client = TestClient(mod.app)
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 6K bytes
    - Click Count (0)
  2. docs/ko/docs/advanced/additional-status-codes.md

    하지만 새로운 항목을 허용하기를 원할 것입니다. 항목이 이전에 존재하지 않았다면 이를 생성하고 HTTP 상태 코드 201 "Created"를 반환합니다.
    
    이를 위해서는 `JSONResponse`를 가져와서 원하는 `status_code`를 설정하여 콘텐츠를 직접 반환합니다:
    
    {* ../../docs_src/additional_status_codes/tutorial001_an_py310.py hl[4,25] *}
    
    /// warning | 경고
    
    위의 예제처럼 `Response`를 직접 반환하면 바로 반환됩니다.
    
    모델 등과 함께 직렬화되지 않습니다.
    
    원하는 데이터가 있는지, 값이 유효한 JSON인지 확인합니다(`JSONResponse`를 사용하는 경우).
    
    ///
    
    /// note | 기술적 세부 정보
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Dec 09 12:22:47 GMT 2024
    - 2.1K bytes
    - Click Count (0)
  3. docs/es/docs/advanced/testing-dependencies.md

    Y entonces **FastAPI** llamará a esa dependencia para sobreescribir en lugar de la dependencia original.
    
    {* ../../docs_src/dependency_testing/tutorial001_an_py310.py hl[26:27,30] *}
    
    /// tip | Consejo
    
    Puedes sobreescribir una dependencia utilizada en cualquier lugar de tu aplicación **FastAPI**.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 16 16:33:45 GMT 2025
    - 2.6K bytes
    - Click Count (0)
  4. docs/en/docs/advanced/testing-dependencies.md

    And then **FastAPI** will call that override instead of the original dependency.
    
    {* ../../docs_src/dependency_testing/tutorial001_an_py310.py hl[26:27,30] *}
    
    /// tip
    
    You can set a dependency override for a dependency used anywhere in your **FastAPI** application.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sun Aug 31 09:15:41 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  5. docs/zh-hant/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">
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Nov 27 22:14:10 GMT 2024
    - 2K bytes
    - Click Count (0)
  6. tests/test_tutorial/test_body_fields/test_tutorial001.py

    
    @pytest.fixture(
        name="client",
        params=[
            "tutorial001_py39",
            pytest.param("tutorial001_py310", marks=needs_py310),
            "tutorial001_an_py39",
            pytest.param("tutorial001_an_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.body_fields.{request.param}")
    
        client = TestClient(mod.app)
        return client
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 6.3K bytes
    - Click Count (0)
  7. docs/en/docs/tutorial/cookie-param-models.md

    ## Cookies with a Pydantic Model { #cookies-with-a-pydantic-model }
    
    Declare the **cookie** parameters that you need in a **Pydantic model**, and then declare the parameter as `Cookie`:
    
    {* ../../docs_src/cookie_param_models/tutorial001_an_py310.py hl[9:12,16] *}
    
    **FastAPI** will **extract** the data for **each field** from the **cookies** received in the request and give you the Pydantic model you defined.
    
    ## Check the Docs { #check-the-docs }
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 10 08:55:32 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  8. docs/ko/docs/tutorial/dependencies/index.md

    ///
    
    ### `Depends` 불러오기
    
    {* ../../docs_src/dependencies/tutorial001_an_py310.py hl[3] *}
    
    ### "의존자"에 의존성 명시하기
    
    *경로 작동 함수*의 매개변수로 `Body`, `Query` 등을 사용하는 방식과 같이 새로운 매개변수로 `Depends`를 사용합니다:
    
    {* ../../docs_src/dependencies/tutorial001_an_py310.py hl[13,18] *}
    
    비록 `Body`, `Query` 등을 사용하는 것과 같은 방식으로 여러분의 함수의 매개변수에 있는 `Depends`를 사용하지만, `Depends`는 약간 다르게 작동합니다.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 11.1K bytes
    - Click Count (0)
  9. docs/ko/docs/advanced/testing-dependencies.md

    테스트를 위해 의존성을 오버라이드하려면, 원래 의존성(함수)을 키로 설정하고 오버라이드할 의존성(다른 함수)을 값으로 설정합니다.
    
    그럼 **FastAPI**는 원래 의존성 대신 오버라이드된 의존성을 호출합니다.
    
    {* ../../docs_src/dependency_testing/tutorial001_an_py310.py hl[26:27,30] *}
    
    /// tip | 팁
    
    **FastAPI** 애플리케이션 어디에서든 사용된 의존성에 대해 오버라이드를 설정할 수 있습니다.
    
    원래 의존성은 *경로 동작 함수*, *경로 동작 데코레이터*(반환값을 사용하지 않는 경우), `.include_router()` 호출 등에서 사용될 수 있습니다.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Nov 27 22:12:04 GMT 2024
    - 2.6K bytes
    - Click Count (0)
  10. docs/de/docs/advanced/testing-dependencies.md

    Und dann ruft **FastAPI** diese Überschreibung anstelle der ursprünglichen Abhängigkeit auf.
    
    {* ../../docs_src/dependency_testing/tutorial001_an_py310.py hl[26:27,30] *}
    
    /// tip | Tipp
    
    Sie können eine Überschreibung für eine Abhängigkeit festlegen, die an einer beliebigen Stelle in Ihrer **FastAPI**-Anwendung verwendet wird.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Sep 20 15:10:09 GMT 2025
    - 3.2K bytes
    - Click Count (0)
Back to Top