- Sort Score
- Num 10 results
- Language All
Results 61 - 70 of 236 for url_lines (0.14 seconds)
-
docs/es/docs/async.md
```Python hl_lines="1" async def get_burgers(number: int): # Hacer algunas cosas asíncronas para crear las hamburguesas return burgers ``` ...en lugar de `def`: ```Python hl_lines="2" # Esto no es asíncrono def get_sequential_burgers(number: int):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:15:55 GMT 2026 - 24.8K bytes - Click Count (0) -
docs/ja/docs/advanced/additional-responses.md
- FastAPI はここに、スキーマを直接埋め込む代わりに OpenAPI 内のグローバルな JSON Schema への参照を追加します。これにより、他のアプリケーションやクライアントがそれらの JSON Schema を直接利用し、より良いコード生成ツール等を提供できます。 /// この *path operation* のために OpenAPI に生成されるレスポンスは次のとおりです: ```JSON hl_lines="3-12" { "responses": { "404": { "description": "Additional Response", "content": { "application/json": { "schema": {Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 10K bytes - Click Count (0) -
docs/zh-hant/docs/python-types.md
這稱為「union」,因為變數可以是這兩種型別集合的聯集中的任一種。 ```Python hl_lines="1" {!> ../../docs_src/python_types/tutorial008b_py310.py!} ``` 這表示 `item` 可以是 `int` 或 `str`。 #### 可能為 `None` { #possibly-none } 你可以宣告某個值可以是某個型別(例如 `str`),但它也可能是 `None`。 //// tab | Python 3.10+ ```Python hl_lines="1" {!> ../../docs_src/python_types/tutorial009_py310.py!} ``` ////Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 10.7K bytes - Click Count (0) -
docs/zh-hant/docs/async.md
然後,使用 `async def` 宣告你的*路徑操作函式*: ```Python hl_lines="2" @app.get('/') async def read_results(): results = await some_library() return results ``` /// note | 注意 你只能在 `async def` 建立的函式內使用 `await`。 /// --- 如果你使用的是第三方函式庫並且它需要與某些外部資源(例如資料庫、API、檔案系統等)進行通訊,但不支援 `await`(目前大多數資料庫函式庫都是這樣),在這種情況下,你可以像平常一樣使用 `def` 宣告*路徑操作函式*,如下所示: ```Python hl_lines="2" @app.get('/') def results():
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 21.7K bytes - Click Count (0) -
docs/zh/docs/async.md
然后,通过 `async def` 声明你的 *路径操作函数*: ```Python hl_lines="2" @app.get('/') async def read_results(): results = await some_library() return results ``` /// note | 注意 你只能在被 `async def` 创建的函数内使用 `await` /// --- 如果你正在使用一个第三方库和某些组件(比如:数据库、API、文件系统...)进行通信,第三方库又不支持使用 `await` (目前大多数数据库三方库都是这样),这种情况你可以像平常那样使用 `def` 声明一个路径操作函数,就像这样: ```Python hl_lines="2" @app.get('/') def results():
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 21.6K bytes - Click Count (0) -
docs/uk/docs/tutorial/body-multiple-params.md
item: Item = Body(embed=True) ``` як у прикладі: {* ../../docs_src/body_multiple_params/tutorial005_an_py310.py hl[17] *} У цьому випадку **FastAPI** очікуватиме тіло такого вигляду: ```JSON hl_lines="2" { "item": { "name": "Foo", "description": "The pretender", "price": 42.0, "tax": 3.2 } } ``` замість: ```JSON {
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 13 12:42:01 GMT 2026 - 7.3K bytes - Click Count (0) -
docs/en/docs/python-types.md
```Python hl_lines="1" {!> ../../docs_src/python_types/tutorial008b_py310.py!} ``` This means that `item` could be an `int` or a `str`. #### Possibly `None` { #possibly-none } You can declare that a value could have a type, like `str`, but that it could also be `None`. //// tab | Python 3.10+ ```Python hl_lines="1" {!> ../../docs_src/python_types/tutorial009_py310.py!}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 11K bytes - Click Count (0) -
docs/de/docs/async.md
```Python hl_lines="1" async def get_burgers(number: int): # Mache hier etwas Asynchrones, um die Burger zu erstellen return burgers ``` ... statt mit `def`: ```Python hl_lines="2" # Dies ist nicht asynchron def get_sequential_burgers(number: int):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:58:09 GMT 2026 - 27.3K bytes - Click Count (0) -
docs/en/docs/async.md
```Python hl_lines="1" async def get_burgers(number: int): # Do some asynchronous stuff to create the burgers return burgers ``` ...instead of `def`: ```Python hl_lines="2" # This is not asynchronous def get_sequential_burgers(number: int): # Do some sequential stuff to create the burgers
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 23.4K bytes - Click Count (0) -
docs/en/docs/tutorial/response-model.md
/// #### Data with values for fields with defaults { #data-with-values-for-fields-with-defaults } But if your data has values for the model's fields with default values, like the item with ID `bar`: ```Python hl_lines="3 5" { "name": "Bar", "description": "The bartenders", "price": 62, "tax": 20.2 } ``` they will be included in the response.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 15.5K bytes - Click Count (0)