- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 199 for tutorial001 (0.11 sec)
-
docs/zh/docs/tutorial/path-operation-configuration.md
{* ../../docs_src/path_operation_configuration/tutorial002.py hl[17,22,27] *} OpenAPI 概图会自动添加标签,供 API 文档接口使用: <img src="/img/tutorial/path-operation-configuration/image01.png"> ## `summary` 和 `description` 参数 路径装饰器还支持 `summary` 和 `description` 这两个参数: {* ../../docs_src/path_operation_configuration/tutorial003.py hl[20:21] *} ## 文档字符串(`docstring`)Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 3.2K bytes - Viewed (0) -
docs/ko/docs/tutorial/first-steps.md
* **함수**: 는 "데코레이터" 아래에 있는 함수입니다 (`@app.get("/")` 아래). {* ../../docs_src/first_steps/tutorial001.py hl[7] *} 이것은 파이썬 함수입니다. URL "`/`"에 대한 `GET` 작동을 사용하는 요청을 받을 때마다 **FastAPI**에 의해 호출됩니다. 위의 예시에서 이 함수는 `async`(비동기) 함수입니다. --- `async def`을 이용하는 대신 일반 함수로 정의할 수 있습니다: {* ../../docs_src/first_steps/tutorial003.py hl[7] *} /// note | 참고
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Oct 11 17:48:49 UTC 2025 - 10.3K bytes - Viewed (0) -
docs/zh/docs/advanced/path-operation-advanced-configuration.md
务必确保每个操作路径的 `operation_id` 都是唯一的。 {* ../../docs_src/path_operation_advanced_configuration/tutorial001.py hl[6] *} ### 使用 *路径操作函数* 的函数名作为 operationId 如果你想用你的 API 的函数名作为 `operationId` 的名字,你可以遍历一遍 API 的函数名,然后使用他们的 `APIRoute.name` 重写每个 *路径操作* 的 `operation_id`。 你应该在添加了所有 *路径操作* 之后执行此操作。 {* ../../docs_src/path_operation_advanced_configuration/tutorial002.py hl[2,12,13,14,15,16,17,18,19,20,21,24] *} /// tipRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 1.8K bytes - Viewed (0) -
docs/ja/docs/tutorial/first-steps.md
{* ../../docs_src/first_steps/tutorial001.py hl[1] *} `FastAPI`は、APIのすべての機能を提供するPythonクラスです。 /// note | 技術詳細 `FastAPI`は`Starlette`を直接継承するクラスです。 `FastAPI`でも<a href="https://www.starlette.dev/" class="external-link" target="_blank">Starlette</a>のすべての機能を利用可能です。 /// ### Step 2: `FastAPI`の「インスタンス」を生成 {* ../../docs_src/first_steps/tutorial001.py hl[3] *} ここで、`app`変数が`FastAPI`クラスの「インスタンス」になります。Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Oct 11 17:48:49 UTC 2025 - 11K bytes - Viewed (0) -
docs/ko/docs/tutorial/header-params.md
## `Header` 임포트 먼저 `Header`를 임포트합니다: {* ../../docs_src/header_params/tutorial001.py hl[3] *} ## `Header` 매개변수 선언 `Path`, `Query` 그리고 `Cookie`를 사용한 동일한 구조를 이용하여 헤더 매개변수를 선언합니다. 첫 번째 값은 기본값이며, 추가 검증이나 어노테이션 매개변수 모두 전달할 수 있습니다: {* ../../docs_src/header_params/tutorial001.py hl[9] *} /// note | 기술 세부사항 `Header`는 `Path`, `Query` 및 `Cookie`의 "자매"클래스입니다. 이 역시 동일한 공통 `Param` 클래스를 상속합니다.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 3.3K bytes - Viewed (0) -
docs/ko/docs/tutorial/path-params-numeric-validations.md
## 경로 임포트 먼저 `fastapi`에서 `Path`를 임포트합니다: {* ../../docs_src/path_params_numeric_validations/tutorial001.py hl[3] *} ## 메타데이터 선언 `Query`에 동일한 매개변수를 선언할 수 있습니다. 예를 들어, `title` 메타데이터 값을 경로 매개변수 `item_id`에 선언하려면 다음과 같이 입력할 수 있습니다: {* ../../docs_src/path_params_numeric_validations/tutorial001.py hl[10] *} /// note | 참고 경로 매개변수는 경로의 일부여야 하므로 언제나 필수적입니다. 즉, `...`로 선언해서 필수임을 나타내는게 좋습니다.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 5.4K bytes - Viewed (0) -
docs/fr/docs/tutorial/body.md
Commencez par importer la classe `BaseModel` du module `pydantic` : {* ../../docs_src/body/tutorial001.py hl[4] *} ## Créez votre modèle de données Déclarez ensuite votre modèle de données en tant que classe qui hérite de `BaseModel`. Utilisez les types Python standard pour tous les attributs : {* ../../docs_src/body/tutorial001.py hl[7:11] *}Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Nov 09 16:39:20 UTC 2024 - 7.6K bytes - Viewed (0) -
docs/zh-hant/docs/tutorial/first-steps.md
{* ../../docs_src/first_steps/tutorial001.py h1[1] *} `FastAPI` 是一個 Python 類別,提供所有 API 的全部功能。 /// note | Technical Details `FastAPI` 是一個直接繼承自 `Starlette` 的類別。 你同樣可以透過 `FastAPI` 來使用 <a href="https://www.starlette.dev/" class="external-link" target="_blank">Starlette</a> 所有的功能。 /// ### 第二步:建立一個 `FastAPI` 「實例」 {* ../../docs_src/first_steps/tutorial001.py h1[3] *}Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Oct 11 17:48:49 UTC 2025 - 11.6K bytes - Viewed (0) -
docs/fr/docs/tutorial/background-tasks.md
{* ../../docs_src/background_tasks/tutorial001.py hl[6:9] *} ## Ajouter une tâche d'arrière-plan Dans votre *fonction de chemin*, passez votre fonction de tâche à l'objet de type `BackgroundTasks` (`background_tasks` ici) grâce à la méthode `.add_task()` : {* ../../docs_src/background_tasks/tutorial001.py hl[14] *} `.add_task()` reçoit comme arguments :Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Oct 11 17:48:49 UTC 2025 - 5.5K bytes - Viewed (0) -
docs/ko/docs/tutorial/background-tasks.md
이 경우, 아래 작업은 파일에 쓰는 함수입니다. (이메일 보내기 시물레이션) 그리고 이 작업은 `async`와 `await`를 사용하지 않으므로 일반 `def` 함수로 선언합니다. {* ../../docs_src/background_tasks/tutorial001.py hl[6:9] *} ## 백그라운드 작업 추가 _경로 작동 함수_ 내에서 작업 함수를 `.add_task()` 함수 통해 _백그라운드 작업_ 개체에 전달합니다. {* ../../docs_src/background_tasks/tutorial001.py hl[14] *} `.add_task()` 함수는 다음과 같은 인자를 받습니다 : - 백그라운드에서 실행되는 작업 함수 (`write_notification`). - 작업 함수에 순서대로 전달되어야 하는 일련의 인자 (`email`).Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Oct 11 17:48:49 UTC 2025 - 5.2K bytes - Viewed (0)