- Sort Score
- Result 10 results
- Languages All
Results 241 - 250 of 275 for tutorial008_an_py310 (0.13 sec)
-
docs/ko/docs/advanced/additional-status-codes.md
하지만 새로운 항목을 허용하기를 원할 것입니다. 항목이 이전에 존재하지 않았다면 이를 생성하고 HTTP 상태 코드 201 "Created"를 반환합니다. 이를 위해서는 `JSONResponse`를 가져와서 원하는 `status_code`를 설정하여 콘텐츠를 직접 반환합니다: {* ../../docs_src/additional_status_codes/tutorial001_an_py310.py hl[4,25] *} /// warning | 경고 위의 예제처럼 `Response`를 직접 반환하면 바로 반환됩니다. 모델 등과 함께 직렬화되지 않습니다. 원하는 데이터가 있는지, 값이 유효한 JSON인지 확인합니다(`JSONResponse`를 사용하는 경우). /// /// note | 기술적 세부 정보
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Dec 09 12:22:47 UTC 2024 - 2.1K bytes - Viewed (0) -
docs/es/docs/advanced/testing-dependencies.md
Y entonces **FastAPI** llamará a esa dependencia para sobreescribir en lugar de la dependencia original. {* ../../docs_src/dependency_testing/tutorial001_an_py310.py hl[26:27,30] *} /// tip | Consejo Puedes sobreescribir una dependencia utilizada en cualquier lugar de tu aplicación **FastAPI**.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Dec 16 16:33:45 UTC 2025 - 2.6K bytes - Viewed (0) -
docs/en/docs/advanced/testing-dependencies.md
And then **FastAPI** will call that override instead of the original dependency. {* ../../docs_src/dependency_testing/tutorial001_an_py310.py hl[26:27,30] *} /// tip You can set a dependency override for a dependency used anywhere in your **FastAPI** application.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 2.4K bytes - Viewed (0) -
tests/test_tutorial/test_body_fields/test_tutorial001.py
@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.body_fields.{request.param}") client = TestClient(mod.app) return client
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 6.3K bytes - Viewed (0) -
docs/ko/docs/tutorial/security/oauth2-jwt.md
새 액세스 토큰을 생성하기 위한 유틸리티 함수를 생성합니다. {* ../../docs_src/security/tutorial004_an_py310.py hl[4,7,13:15,29:31,79:87] *} ## 의존성 수정 `get_current_user` 함수를 이전과 동일한 토큰을 받도록 수정하되, 이번에는 JWT 토큰을 사용하도록 합니다. 받은 토큰을 디코딩하여 검증한 후 현재 사용자를 반환합니다. 토큰이 유효하지 않다면 HTTP 오류를 반환합니다. {* ../../docs_src/security/tutorial004_an_py310.py hl[90:107] *} ## `/token` 경로 작업 수정 토큰의 만료 시각을 설정하기 위해 `timedelta` 를 생성합니다.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sun Aug 31 10:49:48 UTC 2025 - 12.2K bytes - Viewed (0) -
docs/zh/docs/advanced/testing-dependencies.md
对于这些用例,**FastAPI** 应用支持 `app.dependency_overrides` 属性,该属性就是**字典**。 要在测试时覆盖原有依赖项,这个字典的键应当是原依赖项(函数),值是覆盖依赖项(另一个函数)。 这样一来,**FastAPI** 就会调用覆盖依赖项,不再调用原依赖项。 {* ../../docs_src/dependency_testing/tutorial001_an_py310.py hl[26:27,30] *} /// tip | 提示 **FastAPI** 应用中的任何位置都可以实现覆盖依赖项。 原依赖项可用于*路径操作函数*、*路径操作装饰器*(不需要返回值时)、`.include_router()` 调用等。 FastAPI 可以覆盖这些位置的依赖项。 ///Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Dec 17 21:18:42 UTC 2024 - 1.9K bytes - Viewed (0) -
tests/test_tutorial/test_body_multiple_params/test_tutorial005.py
@pytest.fixture( name="client", params=[ pytest.param("tutorial005_py39"), pytest.param("tutorial005_py310", marks=needs_py310), pytest.param("tutorial005_an_py39"), pytest.param("tutorial005_an_py310", marks=needs_py310), ], ) def get_client(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.body_multiple_params.{request.param}") client = TestClient(mod.app)
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 8.2K bytes - Viewed (0) -
docs/de/docs/tutorial/background-tasks.md
**FastAPI** weiß, was jeweils zu tun ist und wie dasselbe Objekt wiederverwendet werden kann, sodass alle Hintergrundtasks zusammengeführt und anschließend im Hintergrund ausgeführt werden: {* ../../docs_src/background_tasks/tutorial002_an_py310.py hl[13,15,22,25] *} In obigem Beispiel werden die Nachrichten, *nachdem* die Response gesendet wurde, in die Datei `log.txt` geschrieben.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 5.8K bytes - Viewed (0) -
docs/uk/docs/tutorial/cookie-param-models.md
/// ## Cookie з Pydantic-моделлю Оголосіть **cookie-параметри**, які Вам потрібні, у **Pydantic-моделі**, а потім оголосіть параметр як `Cookie`: {* ../../docs_src/cookie_param_models/tutorial001_an_py310.py hl[9:12,16] *} **FastAPI** буде **витягувати** дані для **кожного поля** з **cookie** параметрів, отриманих у запиті, і передавати Вам Pydantic-модель, яку Ви визначили. ## Перевірка у документаціїRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Mar 19 17:03:38 UTC 2025 - 4.7K bytes - Viewed (0) -
tests/test_tutorial/test_header_param_models/test_tutorial003.py
@pytest.fixture( name="client", params=[ pytest.param("tutorial003_py39"), pytest.param("tutorial003_py310", marks=needs_py310), pytest.param("tutorial003_an_py39"), pytest.param("tutorial003_an_py310", marks=needs_py310), ], ) def get_client(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.header_param_models.{request.param}") client = TestClient(mod.app)
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 8.5K bytes - Viewed (0)