- Sort Score
- Num 10 results
- Language All
Results 1581 - 1590 of 1,916 for FastApi (0.1 seconds)
-
docs/ko/docs/advanced/additional-status-codes.md
모델 등과 함께 직렬화되지 않습니다. 원하는 데이터가 있는지, 값이 유효한 JSON인지 확인합니다(`JSONResponse`를 사용하는 경우). /// /// note | 기술적 세부 정보 `from starlette.responses import JSONResponse`를 사용할 수도 있습니다. **FastAPI**는 개발자 여러분을 위한 편의성으로 `fastapi.responses`와 동일한 `starlette.responses`를 제공합니다. 그러나 사용 가능한 응답의 대부분은 Starlette에서 직접 제공됩니다. `status` 또한 마찬가지입니다. /// ## OpenAPI 및 API 문서
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Dec 09 12:22:47 GMT 2024 - 2.1K bytes - Click Count (0) -
docs/ko/docs/tutorial/request-form-models.md
```console $ pip install python-multipart ``` /// /// note | 참고 이 기능은 FastAPI 버전 `0.113.0` 이후부터 지원됩니다. 🤓 /// ## Pydantic 모델을 사용한 폼 **폼 필드**로 받고 싶은 필드를 **Pydantic 모델**로 선언한 다음, 매개변수를 `Form`으로 선언하면 됩니다: {* ../../docs_src/request_form_models/tutorial001_an_py39.py hl[9:11,15] *} **FastAPI**는 요청에서 받은 **폼 데이터**에서 **각 필드**에 대한 데이터를 **추출**하고 정의한 Pydantic 모델을 줍니다. ## 문서 확인하기Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Dec 09 12:44:27 GMT 2024 - 2.3K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/query-param-models.md
如果你有一組具有相關性的**查詢參數**,你可以建立一個 **Pydantic 模型**來聲明它們。 這將允許你在**多個地方**去**重複使用模型**,並且一次性為所有參數聲明驗證和元資料 (metadata)。😎 /// note FastAPI 從 `0.115.0` 版本開始支援這個特性。🤓 /// ## 使用 Pydantic 模型的查詢參數 在一個 **Pydantic 模型**中聲明你需要的**查詢參數**,然後將參數聲明為 `Query`: {* ../../docs_src/query_param_models/tutorial001_an_py310.py hl[9:13,17] *} **FastAPI** 將會從請求的**查詢參數**中**提取**出**每個欄位**的資料,並將其提供給你定義的 Pydantic 模型。 ## 查看文件 你可以在 `/docs` 頁面的 UI 中查看查詢參數:Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Nov 27 22:14:10 GMT 2024 - 2K bytes - Click Count (0) -
docs/missing-translation.md
We’re currently switching to an automated translation system 🤖, which will help keep all translations complete and up to date. Learn more: [Contributing – Translations](https://fastapi.tiangolo.com/contributing/#translations){.internal-link target=_blank}Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Thu Oct 30 19:50:37 GMT 2025 - 347 bytes - Click Count (0) -
docs_src/bigger_applications/app_an_py39/routers/users.py
from fastapi import APIRouter router = APIRouter() @router.get("/users/", tags=["users"]) async def read_users(): return [{"username": "Rick"}, {"username": "Morty"}] @router.get("/users/me", tags=["users"]) async def read_user_me(): return {"username": "fakecurrentuser"} @router.get("/users/{username}", tags=["users"]) async def read_user(username: str):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 407 bytes - Click Count (0) -
docs_src/bigger_applications/app_py39/routers/users.py
from fastapi import APIRouter router = APIRouter() @router.get("/users/", tags=["users"]) async def read_users(): return [{"username": "Rick"}, {"username": "Morty"}] @router.get("/users/me", tags=["users"]) async def read_user_me(): return {"username": "fakecurrentuser"} @router.get("/users/{username}", tags=["users"]) async def read_user(username: str):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 407 bytes - Click Count (0) -
tests/test_tutorial/test_response_cookies/test_tutorial001.py
from fastapi.testclient import TestClient from docs_src.response_cookies.tutorial001_py39 import app client = TestClient(app) def test_path_operation(): response = client.post("/cookie/") assert response.status_code == 200, response.text assert response.json() == {"message": "Come to the dark side, we have cookies"}
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 408 bytes - Click Count (0) -
docs/en/docs/advanced/security/oauth2-scopes.md
We are doing it here to demonstrate how **FastAPI** handles scopes declared at different levels. /// {* ../../docs_src/security/tutorial005_an_py310.py hl[5,141,172] *} /// info | Technical Details `Security` is actually a subclass of `Depends`, and it has just one extra parameter that we'll see later.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sun Aug 31 10:49:48 GMT 2025 - 13.5K bytes - Click Count (0) -
docs/ja/docs/tutorial/request-forms.md
フォームを使うためには、まず<a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a>をインストールします。 たとえば、`pip install python-multipart`のように。 /// ## `Form`のインポート `fastapi`から`Form`をインポートします: {* ../../docs_src/request_forms/tutorial001.py hl[1] *} ## `Form`のパラメータの定義 `Body`や`Query`の場合と同じようにフォームパラメータを作成します: {* ../../docs_src/request_forms/tutorial001.py hl[7] *}
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 18 02:25:44 GMT 2024 - 3.3K bytes - Click Count (0) -
tests/test_tutorial/test_query_param_models/test_tutorial002.py
import importlib import pytest from fastapi.testclient import TestClient from inline_snapshot import snapshot from tests.utils import needs_py310 @pytest.fixture( name="client", params=[ pytest.param("tutorial002_py39"), pytest.param("tutorial002_py310", marks=[needs_py310]), pytest.param("tutorial002_an_py39"), pytest.param("tutorial002_an_py310", marks=[needs_py310]), ], )
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 8K bytes - Click Count (0)