- Sort Score
- Result 10 results
- Languages All
Results 1681 - 1690 of 1,916 for FastApi (0.04 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) -
docs/ja/docs/tutorial/cors.md
したがって、すべてを正しく機能させるために、許可されたオリジンの明示的な指定をお勧めします。 ## `CORSMiddleware` の使用 **FastAPI** アプリケーションでは `CORSMiddleware` を使用して、CORSに関する設定ができます。 * `CORSMiddleware`をインポートします。 * 許可されたオリジンのリストを (文字列として) 作成します。 * これを「ミドルウェア」として **FastAPI** アプリケーションに追加します。 以下も、バックエンドに許可させるかどうか指定できます: * クレデンシャル情報 (認証ヘッダー、Cookieなど) 。 * 特定のHTTPメソッド (`POST`、`PUT`) またはワイルドカード `"*"` を使用してすべて許可。
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 6.2K bytes - Viewed (0) -
tests/test_tutorial/test_custom_response/test_tutorial009c.py
from fastapi.testclient import TestClient from docs_src.custom_response.tutorial009c_py39 import app client = TestClient(app) def test_get(): response = client.get("/")
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 244 bytes - Viewed (0) -
docs/en/overrides/partials/copyright.html
<div class="md-copyright"> <div class="md-copyright__highlight"> The FastAPI trademark is owned by <a href="https://tiangolo.com" target="_blank">@tiangolo</a> and is registered in the US and across other regions </div> {% if not config.extra.generator == false %} Made with <a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener"> Material for MkDocs </a> {% endif %}Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sun Feb 04 20:56:59 UTC 2024 - 450 bytes - Viewed (0) -
tests/test_tutorial/test_response_change_status_code/test_tutorial001.py
from fastapi.testclient import TestClient from docs_src.response_change_status_code.tutorial001_py39 import app client = TestClient(app) def test_path_operation(): response = client.put("/get-or-create-task/foo") print(response.content) assert response.status_code == 200, response.text assert response.json() == "Listen to the Bar Fighters" response = client.put("/get-or-create-task/bar")
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 526 bytes - Viewed (0) -
tests/test_tutorial/test_custom_response/test_tutorial007.py
from fastapi.testclient import TestClient from docs_src.custom_response.tutorial007_py39 import app client = TestClient(app) def test_get(): fake_content = b"some fake video bytes" response = client.get("/")
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 269 bytes - Viewed (0) -
tests/test_tutorial/test_background_tasks/test_tutorial002.py
import importlib import os from pathlib import Path import pytest from fastapi.testclient import TestClient from ...utils import needs_py310 @pytest.fixture( name="client", params=[ "tutorial002_py39", pytest.param("tutorial002_py310", marks=needs_py310), "tutorial002_an_py39", pytest.param("tutorial002_an_py310", marks=needs_py310), ], )
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 996 bytes - Viewed (0) -
docs/ja/docs/tutorial/dependencies/sub-dependencies.md
# サブ依存関係 **サブ依存関係** を持つ依存関係を作成することができます。 それらは必要なだけ **深く** することができます。 **FastAPI** はそれらを解決してくれます。 ### 最初の依存関係「依存可能なもの」 以下のような最初の依存関係(「依存可能なもの」)を作成することができます: {* ../../docs_src/dependencies/tutorial005.py hl[8,9] *} これはオプショナルのクエリパラメータ`q`を`str`として宣言し、それを返すだけです。 これは非常にシンプルです(あまり便利ではありません)が、サブ依存関係がどのように機能するかに焦点を当てるのに役立ちます。 ### 第二の依存関係 「依存可能なもの」と「依存」 そして、別の依存関数(「依存可能なもの」)を作成して、同時にそれ自身の依存関係を宣言することができます(つまりそれ自身も「依存」です):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/ko/docs/tutorial/path-params-numeric-validations.md
# 경로 매개변수와 숫자 검증 `Query`를 사용하여 쿼리 매개변수에 더 많은 검증과 메타데이터를 선언하는 방법과 동일하게 `Path`를 사용하여 경로 매개변수에 검증과 메타데이터를 같은 타입으로 선언할 수 있습니다. ## 경로 임포트 먼저 `fastapi`에서 `Path`를 임포트합니다: {* ../../docs_src/path_params_numeric_validations/tutorial001.py hl[3] *} ## 메타데이터 선언 `Query`에 동일한 매개변수를 선언할 수 있습니다. 예를 들어, `title` 메타데이터 값을 경로 매개변수 `item_id`에 선언하려면 다음과 같이 입력할 수 있습니다: {* ../../docs_src/path_params_numeric_validations/tutorial001.py hl[10] *}Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 5.4K bytes - Viewed (0) -
docs/pt/docs/tutorial/metadata.md
# Metadados e Urls de Documentos { #metadata-and-docs-urls } Você pode personalizar várias configurações de metadados na sua aplicação **FastAPI**. ## Metadados para API { #metadata-for-api } Você pode definir os seguintes campos que são usados na especificação OpenAPI e nas interfaces automáticas de documentação da API: | Parâmetro | Tipo | Descrição | |------------|------|-------------| | `title` | `str` | O título da API. |Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 6.3K bytes - Viewed (0)