Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1811 - 1820 of 1,916 for FastApi (0.04 sec)

  1. tests/test_params_repr.py

    from typing import Any
    
    from fastapi.params import Body, Cookie, Header, Param, Path, Query
    
    test_data: list[Any] = ["teststr", None, ..., 1, []]
    
    
    def get_user():
        return {}  # pragma: no cover
    
    
    def test_param_repr_str():
        assert repr(Param("teststr")) == "Param(teststr)"
    
    
    def test_param_repr_none():
        assert repr(Param(None)) == "Param(None)"
    
    
    def test_param_repr_ellipsis():
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  2. docs/ja/docs/tutorial/path-params-numeric-validations.md

    # パスパラメータと数値の検証
    
    クエリパラメータに対して`Query`でより多くのバリデーションとメタデータを宣言できるのと同じように、パスパラメータに対しても`Path`で同じ種類のバリデーションとメタデータを宣言することができます。
    
    ## Pathのインポート
    
    まず初めに、`fastapi`から`Path`をインポートします:
    
    {* ../../docs_src/path_params_numeric_validations/tutorial001.py hl[1] *}
    
    ## メタデータの宣言
    
    パラメータは`Query`と同じものを宣言することができます。
    
    例えば、パスパラメータ`item_id`に対して`title`のメタデータを宣言するには以下のようにします:
    
    {* ../../docs_src/path_params_numeric_validations/tutorial001.py hl[8] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Jan 04 10:53:58 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  3. docs/ko/docs/tutorial/body.md

    ## 요청 본문 + 경로 매개변수
    
    경로 매개변수와 요청 본문을 동시에 선언할 수 있습니다.
    
    **FastAPI**는 경로 매개변수와 일치하는 함수 매개변수가 **경로에서 가져와야 한다**는 것을 인지하며, Pydantic 모델로 선언된 그 함수 매개변수는 **요청 본문에서 가져와야 한다**는 것을 인지할 것입니다.
    
    {* ../../docs_src/body/tutorial003_py310.py hl[15:16] *}
    
    ## 요청 본문 + 경로 + 쿼리 매개변수
    
    **본문**, **경로** 그리고 **쿼리** 매개변수 모두 동시에 선언할 수도 있습니다.
    
    **FastAPI**는 각각을 인지하고 데이터를 옳바른 위치에 가져올 것입니다.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  4. docs/tr/docs/how-to/index.md

    Projeniz için ilginç ve yararlı görünen bir şey varsa devam edin ve inceleyin, aksi halde bunları atlayabilirsiniz.
    
    /// tip | İpucu
    
    **FastAPI**'ı düzgün (ve önerilen) şekilde öğrenmek istiyorsanız [Öğretici - Kullanıcı Rehberi](../tutorial/index.md){.internal-link target=_blank}'ni bölüm bölüm okuyun.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Nov 09 16:39:20 UTC 2024
    - 626 bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/middleware.md

    # Middleware { #middleware }
    
    You can add middleware to **FastAPI** applications.
    
    A "middleware" is a function that works with every **request** before it is processed by any specific *path operation*. And also with every **response** before returning it.
    
    * It takes each **request** that comes to your application.
    * It can then do something to that **request** or run any needed code.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/security/get-current-user.md

    This will help us inside of the function with all the completion and type checks.
    
    /// tip
    
    You might remember that request bodies are also declared with Pydantic models.
    
    Here **FastAPI** won't get confused because you are using `Depends`.
    
    ///
    
    /// check
    
    The way this dependency system is designed allows us to have different dependencies (different "dependables") that all return a `User` model.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 4K bytes
    - Viewed (0)
  7. docs/de/docs/tutorial/security/get-current-user.md

    /// tip | Tipp
    
    Sie erinnern sich vielleicht, dass <abbr title="Anfragekörper">Requestbodys</abbr> ebenfalls mit Pydantic-Modellen deklariert werden.
    
    Weil Sie `Depends` verwenden, wird **FastAPI** hier aber nicht verwirrt.
    
    ///
    
    /// check | Testen
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Sep 20 15:10:09 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  8. docs/ru/docs/how-to/separate-openapi-schemas.md

    В таком случае вы можете отключить эту функциональность в FastAPI с помощью параметра `separate_input_output_schemas=False`.
    
    /// info | Информация
    
    Поддержка `separate_input_output_schemas` появилась в FastAPI `0.102.0`. 🤓
    
    ///
    
    {* ../../docs_src/separate_openapi_schemas/tutorial002_py310.py hl[10] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Sep 30 11:37:11 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  9. tests/test_openapi_schema_type.py

    from typing import Optional, Union
    
    import pytest
    from fastapi.openapi.models import Schema, SchemaType
    
    
    @pytest.mark.parametrize(
        "type_value",
        [
            "array",
            ["string", "null"],
            None,
        ],
    )
    def test_allowed_schema_type(
        type_value: Optional[Union[SchemaType, list[SchemaType]]],
    ) -> None:
        """Test that Schema accepts SchemaType, List[SchemaType] and None for type field."""
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 730 bytes
    - Viewed (0)
  10. docs/ru/docs/how-to/index.md

    Если что-то кажется интересным и полезным для вашего проекта, смело изучайте; в противном случае, вероятно, можно просто пропустить.
    
    /// tip | Совет
    
    Если вы хотите изучить FastAPI структурированно (рекомендуется), вместо этого читайте [Учебник — Руководство пользователя](../tutorial/index.md){.internal-link target=_blank} по главам.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Sep 30 11:37:11 UTC 2025
    - 1K bytes
    - Viewed (0)
Back to top