- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 301 for tutorial001_an_py310 (0.1 sec)
-
docs/zh/docs/tutorial/path-params-numeric-validations.md
## 导入 Path 首先,从 `fastapi` 导入 `Path`: {* ../../docs_src/path_params_numeric_validations/tutorial001_an_py310.py hl[1,3] *} ## 声明元数据 你可以声明与 `Query` 相同的所有参数。 例如,要声明路径参数 `item_id`的 `title` 元数据值,你可以输入: {* ../../docs_src/path_params_numeric_validations/tutorial001_an_py310.py hl[10] *} /// note 路径参数总是必需的,因为它必须是路径的一部分。 所以,你应该在声明时使用 `...` 将其标记为必需参数。Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 4.6K bytes - Viewed (0) -
docs/es/docs/tutorial/dependencies/index.md
{* ../../docs_src/dependencies/tutorial001_an_py310.py hl[3] *} ### Declarar la dependencia, en el "dependant" { #declare-the-dependency-in-the-dependant } De la misma forma en que usas `Body`, `Query`, etc. con los parámetros de tu *path operation function*, usa `Depends` con un nuevo parámetro: {* ../../docs_src/dependencies/tutorial001_an_py310.py hl[13,18] *}Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Dec 16 16:33:45 UTC 2025 - 10.1K bytes - Viewed (0) -
docs/de/docs/tutorial/cookie-param-models.md
Deklarieren Sie die **Cookie**-Parameter, die Sie benötigen, in einem **Pydantic-Modell**, und deklarieren Sie dann den Parameter als `Cookie`: {* ../../docs_src/cookie_param_models/tutorial001_an_py310.py hl[9:12,16] *}Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 10 13:54:34 UTC 2025 - 3.8K bytes - Viewed (0) -
docs/uk/docs/tutorial/query-param-models.md
/// ## Query параметри з Pydantic-моделлю Оголосіть **query параметри**, які Вам потрібні, у **Pydantic-моделі**, а потім оголосіть цей параметр як `Query`: {* ../../docs_src/query_param_models/tutorial001_an_py310.py hl[9:13,17] *} **FastAPI** буде **витягувати** дані для **кожного поля** з **query параметрів** у запиті та передавати їх у визначену вами Pydantic-модель. ## Перевірте документаціюRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Thu Jun 05 12:12:04 UTC 2025 - 3.2K bytes - Viewed (0) -
tests/test_tutorial/test_additional_status_codes/test_tutorial001.py
from ...utils import needs_py310 @pytest.fixture( name="client", params=[ "tutorial001_py39", pytest.param("tutorial001_py310", marks=needs_py310), "tutorial001_an_py39", pytest.param("tutorial001_an_py310", marks=needs_py310), ], ) def get_client(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.additional_status_codes.{request.param}")
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 993 bytes - Viewed (0) -
docs/ru/docs/tutorial/query-param-models.md
## Pydantic-Модель для Query-Параметров { #query-parameters-with-a-pydantic-model } Объявите нужные **query-параметры** в **Pydantic-модели**, а после аннотируйте параметр как `Query`: {* ../../docs_src/query_param_models/tutorial001_an_py310.py hl[9:13,17] *} **FastAPI извлечёт** данные соответствующие **каждому полю модели** из **query-параметров** запроса и выдаст вам объявленную Pydantic-модель заполненную ими.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Sep 30 11:24:39 UTC 2025 - 3.4K bytes - Viewed (0) -
docs/es/docs/advanced/additional-status-codes.md
Para lograr eso, importa `JSONResponse`, y devuelve tu contenido allí directamente, configurando el `status_code` que deseas: {* ../../docs_src/additional_status_codes/tutorial001_an_py310.py hl[4,25] *} /// warning | Advertencia Cuando devuelves un `Response` directamente, como en el ejemplo anterior, se devuelve directamente. No se serializará con un modelo, etc.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Dec 16 16:33:45 UTC 2025 - 2.1K bytes - Viewed (0) -
docs/pt/docs/tutorial/cookie-param-models.md
Declare o parâmetro de **cookie** que você precisa em um **modelo Pydantic**, e depois declare o parâmetro como um `Cookie`: {* ../../docs_src/cookie_param_models/tutorial001_an_py310.py hl[9:12,16] *} O **FastAPI** irá **extrair** os dados para **cada campo** dos **cookies** recebidos na requisição e lhe fornecer o modelo Pydantic que você definiu. ## Verifique a Documentação { #check-the-docs }Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Dec 16 20:32:40 UTC 2025 - 3.4K bytes - Viewed (0) -
docs/ru/docs/tutorial/cookie-param-models.md
## Pydantic-модель для cookies { #cookies-with-a-pydantic-model } Объявите параметры **cookie**, которые вам нужны, в **Pydantic-модели**, а затем объявите параметр как `Cookie`: {* ../../docs_src/cookie_param_models/tutorial001_an_py310.py hl[9:12,16] *} **FastAPI** **извлечёт** данные для **каждого поля** из **cookies**, полученных в запросе, и выдаст вам объявленную Pydantic-модель. ## Проверка сгенерированной документации { #check-the-docs }Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Thu Dec 11 21:25:03 UTC 2025 - 5K bytes - Viewed (0) -
pyproject.toml
"docs_src/dependencies/tutorial013_an_py310.py", # temporary code example? "docs_src/dependencies/tutorial014_an_py310.py", # temporary code example? # Pydantic v1 migration, no longer tested "docs_src/pydantic_v1_in_v2/tutorial001_an_py310.py", "docs_src/pydantic_v1_in_v2/tutorial001_an_py39.py", "docs_src/pydantic_v1_in_v2/tutorial002_an_py310.py",
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 12:54:56 UTC 2025 - 9.3K bytes - Viewed (0)