Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 327 for tutorial006_py310 (0.06 sec)

  1. docs_src/body_nested_models/tutorial006_py310.py

    Sebastián Ramírez <******@****.***> 1641564691 +0100
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Jan 07 14:11:31 UTC 2022
    - 475 bytes
    - Viewed (0)
  2. docs_src/response_model/tutorial006_py310.py

    Sebastián Ramírez <******@****.***> 1641564691 +0100
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Jan 07 14:11:31 UTC 2022
    - 816 bytes
    - Viewed (0)
  3. docs_src/query_params/tutorial006_py310.py

    Sebastián Ramírez <******@****.***> 1641564691 +0100
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Jan 07 14:11:31 UTC 2022
    - 269 bytes
    - Viewed (0)
  4. docs/de/docs/tutorial/body-nested-models.md

    Für ein Beispiel können wir ein `Image`-Modell definieren.
    
    {* ../../docs_src/body_nested_models/tutorial004_py310.py hl[7:9] *}
    
    ### Das Kindmodell als Typ verwenden { #use-the-submodel-as-a-type }
    
    Und dann können wir es als Typ eines Attributes verwenden:
    
    {* ../../docs_src/body_nested_models/tutorial004_py310.py hl[18] *}
    
    Das würde bedeuten, dass **FastAPI** einen Body wie folgt erwartet:
    
    ```JSON
    {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/query-params.md

        "needy": "sooooneedy"
    }
    ```
    
    And of course, you can define some parameters as required, some as having a default value, and some entirely optional:
    
    {* ../../docs_src/query_params/tutorial006_py310.py hl[8] *}
    
    In this case, there are 3 query parameters:
    
    * `needy`, a required `str`.
    * `skip`, an `int` with a default value of `0`.
    * `limit`, an optional `int`.
    
    /// tip
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  6. docs/de/docs/tutorial/query-params.md

        "needy": "sooooneedy"
    }
    ```
    
    Und natürlich können Sie einige Parameter als erforderlich, einige mit Defaultwert, und einige als vollständig optional definieren:
    
    {* ../../docs_src/query_params/tutorial006_py310.py hl[8] *}
    
    In diesem Fall gibt es drei Query-Parameter:
    
    * `needy`, ein erforderlicher `str`.
    * `skip`, ein `int` mit einem Defaultwert `0`.
    * `limit`, ein optionales `int`.
    
    /// tip | Tipp
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 5K bytes
    - Viewed (0)
  7. docs/zh/docs/tutorial/query-params.md

    ```
    
    ……这样就正常了:
    
    ```JSON
    {
        "item_id": "foo-item",
        "needy": "sooooneedy"
    }
    ```
    
    当然,把一些参数定义为必选,为另一些参数设置默认值,再把其它参数定义为可选,这些操作都是可以的:
    
    {* ../../docs_src/query_params/tutorial006_py310.py hl[8] *}
    
    本例中有 3 个查询参数:
    
    * `needy`,必选的 `str` 类型参数
    * `skip`,默认值为 `0` 的 `int` 类型参数
    * `limit`,可选的 `int` 类型参数
    
    /// tip | 提示
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  8. docs/es/docs/tutorial/body-nested-models.md

    {* ../../docs_src/body_nested_models/tutorial005_py310.py hl[2,8] *}
    
    El string será verificado para ser una URL válida, y documentado en JSON Schema / OpenAPI como tal.
    
    ## Atributos con listas de submodelos { #attributes-with-lists-of-submodels }
    
    También puedes usar modelos Pydantic como subtipos de `list`, `set`, etc.:
    
    {* ../../docs_src/body_nested_models/tutorial006_py310.py hl[18] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_query_params/test_tutorial006.py

    import importlib
    
    import pytest
    from fastapi.testclient import TestClient
    
    from ...utils import needs_py310
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial006_py39"),
            pytest.param("tutorial006_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.query_params.{request.param}")
    
        c = TestClient(mod.app)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  10. docs/uk/docs/tutorial/query-params.md

        "needy": "sooooneedy"
    }
    ```
    
    
    Звичайно, Ви можете визначити деякі параметри як обов’язкові, інші зі значенням за замовчуванням, а ще деякі — повністю опціональні:
    
    {* ../../docs_src/query_params/tutorial006_py310.py hl[8] *}
    
    У цьому випадку є 3 query параметри:
    
    * `needy`, обов’язковий `str`.
    * `skip`, `int` зі значенням за замовчуванням `0`.
    * `limit`, опціональний `int`.
    
    
    /// tip | Підказка
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Aug 31 10:29:01 UTC 2025
    - 7.2K bytes
    - Viewed (0)
Back to top