- Sort Score
- Result 10 results
- Languages All
Results 1911 - 1916 of 1,916 for FastApi (0.04 sec)
-
tests/test_include_router_defaults_overrides.py
import warnings import pytest from fastapi import APIRouter, Depends, FastAPI, Response from fastapi.responses import JSONResponse from fastapi.testclient import TestClient class ResponseLevel0(JSONResponse): media_type = "application/x-level-0" class ResponseLevel1(JSONResponse): media_type = "application/x-level-1" class ResponseLevel2(JSONResponse): media_type = "application/x-level-2"
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 358.6K bytes - Viewed (0) -
docs/es/docs/tutorial/extra-models.md
/// ## Reducir duplicación { #reduce-duplication } Reducir la duplicación de código es una de las ideas centrales en **FastAPI**. Ya que la duplicación de código incrementa las posibilidades de bugs, problemas de seguridad, problemas de desincronización de código (cuando actualizas en un lugar pero no en los otros), etc.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Dec 16 16:33:45 UTC 2025 - 7.6K bytes - Viewed (0) -
docs/ja/docs/tutorial/body-updates.md
つまり、更新したいデータだけを送信して、残りはそのままにしておくことができます。 /// note | 備考 `PATCH`は`PUT`よりもあまり使われておらず、知られていません。 また、多くのチームは部分的な更新であっても`PUT`だけを使用しています。 **FastAPI** はどんな制限も課けていないので、それらを使うのは **自由** です。 しかし、このガイドでは、それらがどのように使用されることを意図しているかを多かれ少なかれ、示しています。 /// ### Pydanticの`exclude_unset`パラメータの使用 部分的な更新を受け取りたい場合は、Pydanticモデルの`.dict()`の`exclude_unset`パラメータを使用すると非常に便利です。
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 5K bytes - Viewed (0) -
docs/ko/docs/tutorial/extra-models.md
) ``` /// warning | 경고 추가적으로 제공된 함수 `fake_password_hasher`와 `fake_save_user`는 데이터 흐름을 시연하기 위한 예제일 뿐이며, 실제 보안을 제공하지 않습니다. /// ## 중복 줄이기 코드 중복을 줄이는 것은 **FastAPI**의 핵심 아이디어 중 하나입니다. 코드 중복은 버그, 보안 문제, 코드 비동기화 문제(한 곳은 업데이트되었지만 다른 곳은 업데이트되지 않는 문제) 등의 가능성을 증가시킵니다. 그리고 이 모델들은 많은 데이터를 공유하면서 속성 이름과 타입을 중복하고 있습니다. 더 나은 방법이 있습니다.
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri May 30 13:38:33 UTC 2025 - 8.4K bytes - Viewed (0) -
docs/ja/docs/tutorial/extra-models.md
hashed_password = hashed_password, ) ``` /// warning | 注意 サポートしている追加機能は、データの可能な流れをデモするだけであり、もちろん本当のセキュリティを提供しているわけではありません。 /// ## 重複の削減 コードの重複を減らすことは、**FastAPI**の中核的なアイデアの1つです。 コードの重複が増えると、バグやセキュリティの問題、コードの非同期化問題(ある場所では更新しても他の場所では更新されない場合)などが発生する可能性が高くなります。 そして、これらのモデルは全てのデータを共有し、属性名や型を重複させています。 もっと良い方法があります。
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 6.6K bytes - Viewed (0) -
tests/test_path.py
from fastapi.testclient import TestClient from .main import app client = TestClient(app) def test_text_get(): response = client.get("/text") assert response.status_code == 200, response.text assert response.json() == "Hello World" def test_nonexistent(): response = client.get("/nonexistent") assert response.status_code == 404, response.text assert response.json() == {"detail": "Not Found"}
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 20.5K bytes - Viewed (1)