Search Options

Results per page
Sort
Preferred Languages
Advance

Results 481 - 490 of 924 for docs_src (0.51 sec)

  1. docs/ru/docs/tutorial/dependencies/sub-dependencies.md

    Их **вложенность** может быть любой глубины.
    
    **FastAPI** сам займётся их управлением.
    
    ## Первая зависимость { #first-dependency-dependable }
    
    Можно создать первую зависимость следующим образом:
    
    {* ../../docs_src/dependencies/tutorial005_an_py310.py hl[8:9] *}
    
    Она объявляет необязательный параметр запроса `q` как строку, а затем возвращает его.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/dependencies/index.md

    ///
    
    ### Import `Depends` { #import-depends }
    
    {* ../../docs_src/dependencies/tutorial001_an_py310.py hl[3] *}
    
    ### Declare the dependency, in the "dependant" { #declare-the-dependency-in-the-dependant }
    
    The same way you use `Body`, `Query`, etc. with your *path operation function* parameters, use `Depends` with a new parameter:
    
    {* ../../docs_src/dependencies/tutorial001_an_py310.py hl[13,18] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  3. docs/es/docs/tutorial/cookie-param-models.md

    ///
    
    ## Cookies con un Modelo de Pydantic { #cookies-with-a-pydantic-model }
    
    Declara los parámetros de **cookie** que necesites en un **modelo de Pydantic**, y luego declara el parámetro como `Cookie`:
    
    {* ../../docs_src/cookie_param_models/tutorial001_an_py310.py hl[9:12,16] *}
    
    **FastAPI** **extraerá** los datos para **cada campo** de las **cookies** recibidas en el request y te entregará el modelo de Pydantic que definiste.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  4. docs/es/docs/tutorial/request-forms-and-files.md

    ```
    
    ///
    
    ## Importa `File` y `Form` { #import-file-and-form }
    
    {* ../../docs_src/request_forms_and_files/tutorial001_an_py39.py hl[3] *}
    
    ## Define parámetros `File` y `Form` { #define-file-and-form-parameters }
    
    Crea parámetros de archivo y formulario de la misma manera que lo harías para `Body` o `Query`:
    
    {* ../../docs_src/request_forms_and_files/tutorial001_an_py39.py hl[10:12] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  5. docs/pt/docs/tutorial/request-forms-and-files.md

    ```
    
    ///
    
    ## Importe `File` e `Form` { #import-file-and-form }
    
    {* ../../docs_src/request_forms_and_files/tutorial001_an_py39.py hl[3] *}
    
    ## Defina parâmetros de `File` e `Form` { #define-file-and-form-parameters }
    
    Crie parâmetros de arquivo e formulário da mesma forma que você faria para `Body` ou `Query`:
    
    {* ../../docs_src/request_forms_and_files/tutorial001_an_py39.py hl[10:12] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Nov 12 16:23:57 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_python_types/test_tutorial010.py

    from docs_src.python_types.tutorial010_py39 import Person, get_person_name
    
    
    def test_get_person_name():
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 166 bytes
    - Viewed (0)
  7. docs/ja/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モデル**を提供します。
    
    ## ドキュメントの確認
    
    対話的APIドキュメント `/docs` でクエリパラメータを確認できます:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Feb 28 14:18:46 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  8. docs/zh/docs/tutorial/cookie-param-models.md

    ///
    
    /// tip
    
    此技术同样适用于 `Query` 、 `Cookie` 和 `Header` 。😎
    
    ///
    
    ## 带有 Pydantic 模型的 Cookie
    
    在 **Pydantic** 模型中声明所需的 **cookie** 参数,然后将参数声明为 `Cookie` :
    
    {* ../../docs_src/cookie_param_models/tutorial001_an_py310.py hl[9:12,16] *}
    
    **FastAPI** 将从请求中接收到的 **cookie** 中**提取**出**每个字段**的数据,并提供您定义的 Pydantic 模型。
    
    ## 查看文档
    
    您可以在文档 UI 的 `/docs` 中查看定义的 cookie:
    
    <div class="screenshot">
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 10 20:38:03 UTC 2024
    - 3K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_dependencies/test_tutorial008e.py

    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial008e_py39"),
            pytest.param("tutorial008e_an_py39"),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.dependencies.{request.param}")
    
        client = TestClient(mod.app)
        return client
    
    
    def test_get_users_me(client: TestClient):
        response = client.get("/users/me")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 574 bytes
    - Viewed (0)
  10. docs/ja/docs/tutorial/dependencies/classes-as-dependencies.md

    そこで、上で紹介した依存関係の`common_parameters`を`CommonQueryParams`クラスに変更します:
    
    {* ../../docs_src/dependencies/tutorial002.py hl[11,12,13,14,15] *}
    
    クラスのインスタンスを作成するために使用される`__init__`メソッドに注目してください:
    
    {* ../../docs_src/dependencies/tutorial002.py hl[12] *}
    
    ...以前の`common_parameters`と同じパラメータを持っています:
    
    {* ../../docs_src/dependencies/tutorial001.py hl[8] *}
    
    これらのパラメータは **FastAPI** が依存関係を「解決」するために使用するものです。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 7K bytes
    - Viewed (0)
Back to top