- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 200 for tutorial002 (1.24 sec)
-
docs_src/generate_clients/tutorial004.js
Alejandra <******@****.***> 1710416405 +0100
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Thu Mar 14 11:40:05 UTC 2024 - 1K bytes - Viewed (0) -
docs/uk/docs/tutorial/first-steps.md
{* ../../docs_src/first_steps/tutorial001.py hl[7] *} Це звичайна функція Python. FastAPI викликатиме її щоразу, коли отримає запит до URL із шляхом "/", використовуючи операцію `GET`. У даному випадку це асинхронна функція. --- Ви також можете визначити її як звичайну функцію замість `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 - 15.5K bytes - Viewed (0) -
tests/test_tutorial/test_path_operation_configurations/test_tutorial003_tutorial004.py
import pytest from dirty_equals import IsList from fastapi.testclient import TestClient from ...utils import needs_py310 DESCRIPTIONS = { "tutorial003": "Create an item with all the information, name, description, price, tax and a set of unique tags", "tutorial004": dedent(""" Create an item with all the information: - **name**: each item must have a name - **description**: a long descriptionRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 7K 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/tr/docs/tutorial/query-params.md
# Sorgu Parametreleri Fonksiyonda yol parametrelerinin parçası olmayan diğer tanımlamalar otomatik olarak "sorgu" parametresi olarak yorumlanır. {* ../../docs_src/query_params/tutorial001.py hl[9] *} Sorgu, bağlantıdaki `?` kısmından sonra gelen ve `&` işareti ile ayrılan anahtar-değer çiftlerinin oluşturduğu bir kümedir. Örneğin, aşağıdaki bağlantıda: ``` http://127.0.0.1:8000/items/?skip=0&limit=10 ``` ...sorgu parametreleri şunlardır:
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sun Aug 31 10:29:01 UTC 2025 - 5.2K bytes - Viewed (0) -
docs/uk/docs/tutorial/query-params.md
# Query Параметри Коли Ви оголошуєте інші параметри функції, які не є частиною параметрів шляху, вони автоматично інтерпретуються як "query" параметри. {* ../../docs_src/query_params/tutorial001.py hl[9] *} Query параметри — це набір пар ключ-значення, що йдуть після символу `?` в URL, розділені символами `&`. Наприклад, в URL: ``` http://127.0.0.1:8000/items/?skip=0&limit=10 ``` ...query параметрами є: * `skip`: зі значенням `0`
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sun Aug 31 10:29:01 UTC 2025 - 7.2K bytes - Viewed (0) -
docs/ja/docs/tutorial/dependencies/dependencies-with-yield.md
例えば、これを使ってデータベースセッションを作成し、終了後にそれを閉じることができます。 レスポンスを送信する前に`yield`文を含む前のコードのみが実行されます。 {* ../../docs_src/dependencies/tutorial007.py hl[2,3,4] *} 生成された値は、*path operations*や他の依存関係に注入されるものです: {* ../../docs_src/dependencies/tutorial007.py hl[4] *} `yield`文に続くコードは、レスポンスが送信された後に実行されます: {* ../../docs_src/dependencies/tutorial007.py hl[5,6] *} /// tip | 豆知識 `async`や通常の関数を使用することができます。 **FastAPI** は、通常の依存関係と同じように、それぞれで正しいことを行います。Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 12.3K bytes - Viewed (0) -
docs/zh/docs/tutorial/first-steps.md
### 步骤 1:导入 `FastAPI` {* ../../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> 的功能。 /// ### 步骤 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 - 10.5K bytes - Viewed (0) -
docs/zh/docs/tutorial/query-params.md
# 查询参数 声明的参数不是路径参数时,路径操作函数会把该参数自动解释为**查询**参数。 {* ../../docs_src/query_params/tutorial001.py hl[9] *} 查询字符串是键值对的集合,这些键值对位于 URL 的 `?` 之后,以 `&` 分隔。 例如,以下 URL 中: ``` http://127.0.0.1:8000/items/?skip=0&limit=10 ``` ……查询参数为: * `skip`:值为 `0` * `limit`:值为 `10` 这些值都是 URL 的组成部分,因此,它们的类型**本应**是字符串。 但声明 Python 类型(上例中为 `int`)之后,这些值就会转换为声明的类型,并进行类型校验。 所有应用于路径参数的流程也适用于查询参数: * (显而易见的)编辑器支持Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 4.3K bytes - Viewed (0) -
docs/zh/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md
路径装饰器依赖项可以声明请求的需求项(比如响应头)或其他子依赖项: {* ../../docs_src/dependencies/tutorial006.py hl[6,11] *} ### 触发异常 路径装饰器依赖项与正常的依赖项一样,可以 `raise` 异常: {* ../../docs_src/dependencies/tutorial006.py hl[8,13] *} ### 返回值 无论路径装饰器依赖项是否返回值,路径操作都不会使用这些值。 因此,可以复用在其他位置使用过的、(能返回值的)普通依赖项,即使没有使用这个值,也会执行该依赖项: {* ../../docs_src/dependencies/tutorial006.py hl[9,14] *} ## 为一组路径操作定义依赖项Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 2.6K bytes - Viewed (0)