- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 260 for tutorial006_py310 (1.03 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
docs/pt/docs/tutorial/body-nested-models.md
{* ../../docs_src/body_nested_models/tutorial005_py310.py hl[2,8] *} A string será verificada para se tornar uma URL válida e documentada no JSON Schema / OpenAPI como tal. ## Atributos como listas de submodelos { #attributes-with-lists-of-submodels } Você também pode 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.4K bytes - Viewed (0) -
tests/test_tutorial/test_body_nested_models/test_tutorial006.py
from dirty_equals import IsList 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.body_nested_models.{request.param}")
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 8.7K bytes - Viewed (0) -
docs/pt/docs/tutorial/query-params.md
"needy": "sooooneedy" } ``` E claro, você pode definir alguns parâmetros como obrigatórios, alguns possuindo um valor padrão, e outros sendo totalmente opcionais: {* ../../docs_src/query_params/tutorial006_py310.py hl[8] *} Nesse caso, existem 3 parâmetros de consulta: * `needy`, um `str` obrigatório. * `skip`, um `int` com o valor padrão `0`. * `limit`, um `int` opcional. /// tip | Dica
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 5K bytes - Viewed (0)