Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1591 - 1600 of 1,916 for FastApi (0.06 sec)

  1. tests/test_tutorial/test_header_param_models/test_tutorial002.py

    import importlib
    
    import pytest
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    
    from tests.utils import needs_py310
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial002_py39"),
            pytest.param("tutorial002_py310", marks=[needs_py310]),
            pytest.param("tutorial002_an_py39"),
            pytest.param("tutorial002_an_py310", marks=[needs_py310]),
        ],
    )
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_query_param_models/test_tutorial001.py

    import importlib
    
    import pytest
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    
    from tests.utils import needs_py310
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial001_py39"),
            pytest.param("tutorial001_py310", marks=needs_py310),
            pytest.param("tutorial001_an_py39"),
            pytest.param("tutorial001_an_py310", marks=needs_py310),
        ],
    )
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  3. docs/en/docs/advanced/security/oauth2-scopes.md

    We are doing it here to demonstrate how **FastAPI** handles scopes declared at different levels.
    
    ///
    
    {* ../../docs_src/security/tutorial005_an_py310.py hl[5,141,172] *}
    
    /// info | Technical Details
    
    `Security` is actually a subclass of `Depends`, and it has just one extra parameter that we'll see later.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Aug 31 10:49:48 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  4. docs/ko/docs/advanced/additional-status-codes.md

    모델 등과 함께 직렬화되지 않습니다.
    
    원하는 데이터가 있는지, 값이 유효한 JSON인지 확인합니다(`JSONResponse`를 사용하는 경우).
    
    ///
    
    /// note | 기술적 세부 정보
    
    `from starlette.responses import JSONResponse`를 사용할 수도 있습니다.
    
    **FastAPI**는 개발자 여러분을 위한 편의성으로 `fastapi.responses`와 동일한 `starlette.responses`를 제공합니다. 그러나 사용 가능한 응답의 대부분은 Starlette에서 직접 제공됩니다. `status` 또한 마찬가지입니다.
    
    ///
    
    ## OpenAPI 및 API 문서
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Dec 09 12:22:47 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  5. docs/ko/docs/tutorial/request-form-models.md

    ```console
    $ pip install python-multipart
    ```
    
    ///
    
    /// note | 참고
    
    이 기능은 FastAPI 버전 `0.113.0` 이후부터 지원됩니다. 🤓
    
    ///
    
    ## Pydantic 모델을 사용한 폼
    
    **폼 필드**로 받고 싶은 필드를 **Pydantic 모델**로 선언한 다음, 매개변수를 `Form`으로 선언하면 됩니다:
    
    {* ../../docs_src/request_form_models/tutorial001_an_py39.py hl[9:11,15] *}
    
    **FastAPI**는 요청에서 받은 **폼 데이터**에서 **각 필드**에 대한 데이터를 **추출**하고 정의한 Pydantic 모델을 줍니다.
    
    ## 문서 확인하기
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Dec 09 12:44:27 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  6. docs/zh-hant/docs/tutorial/query-param-models.md

    如果你有一組具有相關性的**查詢參數**,你可以建立一個 **Pydantic 模型**來聲明它們。
    
    這將允許你在**多個地方**去**重複使用模型**,並且一次性為所有參數聲明驗證和元資料 (metadata)。😎
    
    /// 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 中查看查詢參數:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Nov 27 22:14:10 UTC 2024
    - 2K bytes
    - Viewed (0)
  7. docs/uk/docs/tutorial/body-nested-models.md

    # Тіло запиту - Вкладені моделі
    
    З **FastAPI** Ви можете визначати, перевіряти, документувати та використовувати моделі, які можуть бути вкладені на будь-яку глибину (завдяки Pydantic).
    
    ## Поля списку
    
    Ви можете визначити атрибут як підтип. Наприклад, Python-список (`list`):
    
    {* ../../docs_src/body_nested_models/tutorial001_py310.py hl[12] *}
    
    Це зробить `tags` списком, хоча не визначається тип елементів списку.
    
    ## Поля списку з параметром типу
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Feb 28 14:18:01 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  8. docs/de/docs/tutorial/header-params.md

    `Header` ist eine „Schwester“-Klasse von `Path`, `Query` und `Cookie`. Sie erbt ebenfalls von der gemeinsamen `Param`-Klasse.
    
    Aber denken Sie daran, dass bei der Nutzung von `Query`, `Path`, `Header` und anderen Importen aus `fastapi`, diese tatsächlich Funktionen sind, die spezielle Klassen zurückgeben.
    
    ///
    
    /// info | Info
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Sep 20 15:10:09 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  9. docs/ja/docs/tutorial/encoder.md

    # JSON互換エンコーダ
    
    データ型(Pydanticモデルのような)をJSONと互換性のあるもの(`dict`や`list`など)に変更する必要がある場合があります。
    
    例えば、データベースに保存する必要がある場合です。
    
    そのために、**FastAPI** は`jsonable_encoder()`関数を提供しています。
    
    ## `jsonable_encoder`の使用
    
    JSON互換のデータのみを受信するデータベース`fake_db`があるとしましょう。
    
    例えば、`datetime`オブジェクトはJSONと互換性がないので、このデーターベースには受け取られません。
    
    そのため、`datetime`オブジェクトは<a href="https://en.wikipedia.org/wiki/ISO_8601" class="external-link" target="_blank">ISO形式</a>のデータを含む`str`に変換されなければなりません。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Jun 22 14:36:05 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  10. docs/zh/docs/tutorial/header-params.md

    第一个值是默认值,还可以传递所有验证参数或注释参数:
    
    {* ../../docs_src/header_params/tutorial001_an_py310.py hl[9] *}
    
    /// note | 技术细节
    
    `Header` 是 `Path`、`Query`、`Cookie` 的**兄弟类**,都继承自共用的 `Param` 类。
    
    注意,从 `fastapi` 导入的 `Query`、`Path`、`Header` 等对象,实际上是返回特殊类的函数。
    
    ///
    
    /// info | 说明
    
    必须使用 `Header` 声明 header 参数,否则该参数会被解释为查询参数。
    
    ///
    
    ## 自动转换
    
    `Header` 比 `Path`、`Query` 和 `Cookie` 提供了更多功能。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 2.5K bytes
    - Viewed (0)
Back to top