- Sort Score
- Result 10 results
- Languages All
Results 521 - 530 of 924 for docs_src (0.05 sec)
-
docs/ja/docs/tutorial/body-fields.md
## `Field`のインポート まず、以下のようにインポートします: {* ../../docs_src/body_fields/tutorial001.py hl[4] *} /// warning | 注意 `Field`は他の全てのもの(`Query`、`Path`、`Body`など)とは違い、`fastapi`からではなく、`pydantic`から直接インポートされていることに注意してください。 /// ## モデルの属性の宣言 以下のように`Field`をモデルの属性として使用することができます: {* ../../docs_src/body_fields/tutorial001.py hl[11,12,13,14] *}Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sun Jun 22 14:34:53 UTC 2025 - 2.5K bytes - Viewed (0) -
tests/test_tutorial/test_python_types/test_tutorial009_tutorial009b.py
pytest.param("tutorial009_py310", marks=needs_py310), pytest.param("tutorial009b_py39"), ], ) def get_module(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.python_types.{request.param}") return mod def test_say_hi(module: ModuleType): with patch("builtins.print") as mock_print: module.say_hi("FastAPI") module.say_hi()
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 805 bytes - Viewed (0) -
tests/test_tutorial/test_python_types/test_tutorial009c.py
params=[ pytest.param("tutorial009c_py39"), pytest.param("tutorial009c_py310", marks=needs_py310), ], ) def get_module(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.python_types.{request.param}") return mod def test_say_hi(module: ModuleType): with patch("builtins.print") as mock_print: module.say_hi("FastAPI")Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 777 bytes - Viewed (0) -
docs/es/docs/advanced/behind-a-proxy.md
``` </div> ### Redirecciones con HTTPS { #redirects-with-https } Por ejemplo, digamos que defines una *path operation* `/items/`: {* ../../docs_src/behind_a_proxy/tutorial001_01_py39.py hl[6] *} Si el cliente intenta ir a `/items`, por defecto, sería redirigido a `/items/`.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 17.1K bytes - Viewed (0) -
docs/zh/docs/advanced/testing-websockets.md
# 测试 WebSockets 测试 WebSockets 也使用 `TestClient`。 为此,要在 `with` 语句中使用 `TestClient` 连接 WebSocket。 {* ../../docs_src/app_testing/tutorial002.py hl[27:31] *} /// note | 笔记 更多细节详见 <a href="https://www.starlette.dev/testclient/#testing-websocket-sessions" class="external-link" target="_blank">Starlette 官档 - 测试 WebSockets</a>。Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Oct 11 17:48:49 UTC 2025 - 398 bytes - Viewed (0) -
docs/ja/docs/tutorial/dependencies/sub-dependencies.md
### 最初の依存関係「依存可能なもの」 以下のような最初の依存関係(「依存可能なもの」)を作成することができます: {* ../../docs_src/dependencies/tutorial005.py hl[8,9] *} これはオプショナルのクエリパラメータ`q`を`str`として宣言し、それを返すだけです。 これは非常にシンプルです(あまり便利ではありません)が、サブ依存関係がどのように機能するかに焦点を当てるのに役立ちます。 ### 第二の依存関係 「依存可能なもの」と「依存」 そして、別の依存関数(「依存可能なもの」)を作成して、同時にそれ自身の依存関係を宣言することができます(つまりそれ自身も「依存」です): {* ../../docs_src/dependencies/tutorial005.py hl[13] *} 宣言されたパラメータに注目してみましょう: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/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) -
docs/ru/docs/tutorial/middleware.md
* Затем она возвращает ответ `response`, сгенерированный *операцией пути*. * Также имеется возможность видоизменить `response`, перед тем как его вернуть. {* ../../docs_src/middleware/tutorial001_py39.py hl[8:9,11,14] *} /// tip | ПримечаниеRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 6.3K bytes - Viewed (0) -
docs/en/docs/advanced/testing-websockets.md
# Testing WebSockets { #testing-websockets } You can use the same `TestClient` to test WebSockets. For this, you use the `TestClient` in a `with` statement, connecting to the WebSocket: {* ../../docs_src/app_testing/tutorial002_py39.py hl[27:31] *} /// note For more details, check Starlette's documentation for <a href="https://www.starlette.dev/testclient/#testing-websocket-sessions" class="external-link" target="_blank">testing WebSockets</a>.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 459 bytes - Viewed (0) -
tests/test_tutorial/test_websockets/test_tutorial003.py
@pytest.fixture( name="mod", params=[ pytest.param("tutorial003_py39"), ], ) def get_mod(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.websockets.{request.param}") return mod @pytest.fixture(name="html") def get_html(mod: ModuleType): return mod.html @pytest.fixture(name="client") def get_client(mod: ModuleType):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 1.3K bytes - Viewed (0)