- Sort Score
- Result 10 results
- Languages All
Results 1901 - 1910 of 1,916 for FastApi (0.05 sec)
-
tests/test_application.py
import pytest from fastapi.testclient import TestClient from .main import app client = TestClient(app) @pytest.mark.parametrize( "path,expected_status,expected_response", [ ("/api_route", 200, {"message": "Hello World"}), ("/non_decorated_route", 200, {"message": "Hello World"}), ("/nonexistent", 404, {"detail": "Not Found"}), ], ) def test_get_path(path, expected_status, expected_response):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 51.9K bytes - Viewed (0) -
docs/ja/docs/how-to/conditional-openapi.md
生成するOpenAPIとドキュメントUIの構成は、共通のPydanticの設定を使用して簡単に切り替えられます。 例えば、 {* ../../docs_src/conditional_openapi/tutorial001.py hl[6,11] *} ここでは `openapi_url` の設定を、デフォルトの `"/openapi.json"` のまま宣言しています。 そして、これを `FastAPI` appを作る際に使います。 それから、以下のように `OPENAPI_URL` という環境変数を空文字列に設定することによってOpenAPI (UIドキュメントを含む) を無効化することができます。 <div class="termy"> ```console $ OPENAPI_URL= uvicorn main:appRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 3.1K bytes - Viewed (0) -
docs/es/docs/tutorial/body-updates.md
/// note | Nota `PATCH` es menos usado y conocido que `PUT`. Y muchos equipos utilizan solo `PUT`, incluso para actualizaciones parciales. Eres **libre** de usarlos como desees, **FastAPI** no impone ninguna restricción. Pero esta guía te muestra, más o menos, cómo se pretende que se usen. /// ### Uso del parámetro `exclude_unset` de Pydantic { #using-pydantics-exclude-unset-parameter }Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Dec 16 16:33:45 UTC 2025 - 5.1K bytes - Viewed (0) -
docs/ja/docs/tutorial/metadata.md
# メタデータとドキュメントのURL **FastAPI** アプリケーションのいくつかのメタデータの設定をカスタマイズできます。 ## タイトル、説明文、バージョン 以下を設定できます: * **タイトル**: OpenAPIおよび自動APIドキュメントUIでAPIのタイトル/名前として使用される。 * **説明文**: OpenAPIおよび自動APIドキュメントUIでのAPIの説明文。 * **バージョン**: APIのバージョン。例: `v2` または `2.5.0`。 *たとえば、以前のバージョンのアプリケーションがあり、OpenAPIも使用している場合に便利です。 これらを設定するには、パラメータ `title`、`description`、`version` を使用します: {* ../../docs_src/metadata/tutorial001.py hl[4:6] *}Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 4.5K bytes - Viewed (0) -
docs/es/docs/advanced/settings.md
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 13.2K bytes - Viewed (0) -
docs/en/docs/tutorial/extra-models.md
/// ## Reduce duplication { #reduce-duplication } Reducing code duplication is one of the core ideas in **FastAPI**. As code duplication increments the chances of bugs, security issues, code desynchronization issues (when you update in one place but not in the others), etc.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 20 15:55:38 UTC 2025 - 6.9K bytes - Viewed (0) -
docs/de/docs/tutorial/extra-models.md
/// ## Verdopplung vermeiden { #reduce-duplication } Die Reduzierung von Code-Verdoppelung ist eine der Kernideen von **FastAPI**. Da die Verdopplung von Code die Wahrscheinlichkeit von Fehlern, Sicherheitsproblemen, Problemen mit der Desynchronisation des Codes (wenn Sie an einer Stelle, aber nicht an der anderen aktualisieren) usw. erhöht.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 24 10:28:19 UTC 2025 - 8K bytes - Viewed (0) -
docs/ru/docs/tutorial/extra-models.md
/// ## Сократите дублирование { #reduce-duplication } Сокращение дублирования кода - это одна из главных идей **FastAPI**. Поскольку дублирование кода повышает риск появления багов, проблем с безопасностью, проблем десинхронизации кода (когда вы обновляете код в одном месте, но не обновляете в другом), и т.д.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Sep 30 11:24:39 UTC 2025 - 11.5K bytes - Viewed (0) -
docs/pt/docs/tutorial/extra-models.md
/// ## Reduzir duplicação { #reduce-duplication } Reduzir a duplicação de código é uma das ideias principais no **FastAPI**. A duplicação de código aumenta as chances de bugs, problemas de segurança, problemas de desincronização de código (quando você atualiza em um lugar, mas não em outros), etc.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Nov 12 16:23:57 UTC 2025 - 7.5K bytes - Viewed (0) -
docs/ko/docs/tutorial/response-model.md
{* ../../docs_src/response_model/tutorial003.py hl[24] *} ...`response_model`을 `UserOut` 모델로 선언했기 때문에 비밀번호를 포함하지 않습니다: {* ../../docs_src/response_model/tutorial003.py hl[22] *} 따라서 **FastAPI**는 출력 모델에서 선언하지 않은 모든 데이터를 (Pydantic을 사용하여) 필터링합니다. ## 문서에서 보기 자동 생성 문서를 보면 입력 모델과 출력 모델이 각자의 JSON 스키마를 가지고 있음을 확인할 수 있습니다: <img src="/img/tutorial/response-model/image01.png"> 그리고 두 모델 모두 대화형 API 문서에 사용됩니다:Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 7.9K bytes - Viewed (0)