- Sort Score
- Result 10 results
- Languages All
Results 1011 - 1020 of 1,916 for FastApi (0.04 sec)
-
docs/ko/docs/tutorial/query-param-models.md
이렇게 하면 **여러 곳**에서 **모델을 재사용**할 수 있을 뿐만 아니라, 매개변수에 대한 검증 및 메타데이터도 한 번에 선언할 수 있습니다. 😎 /// note | 참고 이 기능은 FastAPI 버전 `0.115.0`부터 제공됩니다. 🤓 /// ## 쿼리 매개변수와 Pydantic 모델 필요한 **쿼리 매개변수**를 **Pydantic 모델** 안에 선언한 다음, 모델을 `Query`로 선언합니다. {* ../../docs_src/query_param_models/tutorial001_an_py310.py hl[9:13,17] *} **FastAPI**는 요청의 **쿼리 매개변수**에서 **각 필드**의 데이터를 **추출**해 정의한 Pydantic 모델로 제공합니다. ## 문서 확인하기Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Nov 20 19:24:08 UTC 2024 - 2.3K bytes - Viewed (0) -
tests/test_tutorial/test_using_request_directly/test_tutorial001.py
from fastapi.testclient import TestClient from docs_src.using_request_directly.tutorial001_py39 import app client = TestClient(app) def test_path_operation(): response = client.get("/items/foo") assert response.status_code == 200 assert response.json() == {"client_host": "testclient", "item_id": "foo"} def test_openapi(): response = client.get("/openapi.json") assert response.status_code == 200
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 3.8K bytes - Viewed (0) -
docs/ko/docs/tutorial/dependencies/dependencies-with-yield.md
그리고 `yield`를 사용하는 다른 여러 의존성을 필요로 하는 단일 의존성을 가질 수도 있습니다. 원하는 의존성을 원하는 대로 조합할 수 있습니다. **FastAPI**는 모든 것이 올바른 순서로 실행되도록 보장합니다. /// note | 기술 세부사항 파이썬의 <a href=“https://docs.python.org/3/library/contextlib.html” class=“external-link” target=“_blank”>Context Managers</a> 덕분에 이 기능이 작동합니다. **FastAPI**는 이를 내부적으로 컨텍스트 관리자를 사용하여 구현합니다. /// ## `yield`와 `HTTPException`를 사용하는 의존성
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sun Feb 09 14:54:09 UTC 2025 - 14.2K bytes - Viewed (0) -
tests/test_security_oauth2_authorization_code_bearer_scopes_openapi_simple.py
# Ref: https://github.com/fastapi/fastapi/issues/14454 from typing import Annotated from fastapi import Depends, FastAPI, Security from fastapi.security import OAuth2AuthorizationCodeBearer from fastapi.testclient import TestClient from inline_snapshot import snapshot oauth2_scheme = OAuth2AuthorizationCodeBearer( authorizationUrl="api/oauth/authorize", tokenUrl="/api/oauth/token", scopes={"read": "Read access", "write": "Write access"},
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 2.6K bytes - Viewed (0) -
tests/test_tutorial/test_custom_request_and_route/test_tutorial001.py
import gzip import importlib import json import pytest from fastapi import Request from fastapi.testclient import TestClient from tests.utils import needs_py310 @pytest.fixture( name="client", params=[ pytest.param("tutorial001_py39"), pytest.param("tutorial001_py310", marks=needs_py310), pytest.param("tutorial001_an_py39"), pytest.param("tutorial001_an_py310", marks=needs_py310),
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 1.3K bytes - Viewed (0) -
docs/es/docs/tutorial/request-forms.md
```console $ pip install python-multipart ``` /// ## Importar `Form` { #import-form } Importar `Form` desde `fastapi`: {* ../../docs_src/request_forms/tutorial001_an_py39.py hl[3] *} ## Definir parámetros de `Form` { #define-form-parameters } Crea parámetros de formulario de la misma manera que lo harías para `Body` o `Query`:Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Dec 16 16:33:45 UTC 2025 - 3.1K bytes - Viewed (0) -
docs/en/docs/tutorial/request-forms.md
```console $ pip install python-multipart ``` /// ## Import `Form` { #import-form } Import `Form` from `fastapi`: {* ../../docs_src/request_forms/tutorial001_an_py39.py hl[3] *} ## Define `Form` parameters { #define-form-parameters } Create form parameters the same way you would for `Body` or `Query`:Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 2.7K bytes - Viewed (0) -
docs_src/security/tutorial005_an_py310.py
from datetime import datetime, timedelta, timezone from typing import Annotated import jwt from fastapi import Depends, FastAPI, HTTPException, Security, status from fastapi.security import ( OAuth2PasswordBearer, OAuth2PasswordRequestForm, SecurityScopes, ) from jwt.exceptions import InvalidTokenError from pwdlib import PasswordHash from pydantic import BaseModel, ValidationError # to get a string like this run:
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Sep 29 02:57:38 UTC 2025 - 5.3K bytes - Viewed (0) -
docs_src/security/tutorial005_an_py39.py
from datetime import datetime, timedelta, timezone from typing import Annotated, Union import jwt from fastapi import Depends, FastAPI, HTTPException, Security, status from fastapi.security import ( OAuth2PasswordBearer, OAuth2PasswordRequestForm, SecurityScopes, ) from jwt.exceptions import InvalidTokenError from pwdlib import PasswordHash from pydantic import BaseModel, ValidationError # to get a string like this run:
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Sep 29 02:57:38 UTC 2025 - 5.3K bytes - Viewed (0) -
docs/zh/docs/advanced/index.md
# 高级用户指南 ## 额外特性 主要的教程 [教程 - 用户指南](../tutorial/index.md){.internal-link target=_blank} 应该足以让你了解 **FastAPI** 的所有主要特性。 你会在接下来的章节中了解到其他的选项、配置以及额外的特性。 /// tip 接下来的章节**并不一定是**「高级的」。 而且对于你的使用场景来说,解决方案很可能就在其中。 /// ## 先阅读教程 你可能仍会用到 **FastAPI** 主教程 [教程 - 用户指南](../tutorial/index.md){.internal-link target=_blank} 中的大多数特性。Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Aug 06 04:48:30 UTC 2024 - 770 bytes - Viewed (0)