- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 979 for tutorial006_py310 (0.12 seconds)
-
docs/ja/docs/tutorial/path-operation-configuration.md
{* ../../docs_src/path_operation_configuration/tutorial004_py310.py hl[17:25] *} これは対話的ドキュメントで使用されます: <img src="/img/tutorial/path-operation-configuration/image02.png"> ## レスポンスの説明 { #response-description } `response_description`パラメータでレスポンスの説明をすることができます。 {* ../../docs_src/path_operation_configuration/tutorial005_py310.py hl[18] *} /// info | 情報Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 4.8K bytes - Click Count (0) -
docs/en/docs/advanced/custom-response.md
You can return a `RedirectResponse` directly: {* ../../docs_src/custom_response/tutorial006_py310.py hl[2,9] *} --- Or you can use it in the `response_class` parameter: {* ../../docs_src/custom_response/tutorial006b_py310.py hl[2,7,9] *} If you do that, then you can return the URL directly from your *path operation* function.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/zh-hant/docs/advanced/path-operation-advanced-configuration.md
{* ../../docs_src/path_operation_advanced_configuration/tutorial001_py310.py hl[6] *} ### 使用路徑操作函式(path operation function)的名稱作為 operationId { #using-the-path-operation-function-name-as-the-operationid } 如果你想用 API 的函式名稱作為 `operationId`,你可以遍歷所有路徑,並使用各自的 `APIRoute.name` 覆寫每個*路徑操作*的 `operation_id`。 應在加入所有*路徑操作*之後再這麼做。 {* ../../docs_src/path_operation_advanced_configuration/tutorial002_py310.py hl[2, 12:21, 24] *} /// tipCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 6.5K bytes - Click Count (0) -
docs/zh/docs/advanced/path-operation-advanced-configuration.md
{* ../../docs_src/path_operation_advanced_configuration/tutorial001_py310.py hl[6] *} ### 使用 *路径操作函数* 的函数名作为 operationId { #using-the-path-operation-function-name-as-the-operationid } 如果你想用 API 的函数名作为 `operationId`,你可以遍历所有路径操作,并使用它们的 `APIRoute.name` 重写每个 *路径操作* 的 `operation_id`。 你应该在添加了所有 *路径操作* 之后执行此操作。 {* ../../docs_src/path_operation_advanced_configuration/tutorial002_py310.py hl[2, 12:21, 24] *} /// tipCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 6.7K bytes - Click Count (0) -
scripts/tests/test_translation_fixer/test_complex_doc/data/en_doc.md
## Simple code includes { #simple-code-includes } {* ../../docs_src/python_types/tutorial001_py310.py *} {* ../../docs_src/python_types/tutorial002_py310.py *} ## Code includes with highlighting { #code-includes-with-highlighting } {* ../../docs_src/python_types/tutorial002_py310.py hl[1] *} {* ../../docs_src/python_types/tutorial006_py310.py hl[10] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 08:08:04 GMT 2026 - 7.6K bytes - Click Count (0) -
docs/ja/docs/advanced/path-operation-advanced-configuration.md
## docstringによる説明の高度な設定 { #advanced-description-from-docstring } *path operation関数* のdocstringからOpenAPIに使用する行を制限できます。 `\f`(エスケープされた「書式送り(form feed)」文字)を追加すると、**FastAPI** はその地点でOpenAPIに使用される出力を切り詰めます。 ドキュメントには表示されませんが、他のツール(Sphinxなど)は残りの部分を利用できます。 {* ../../docs_src/path_operation_advanced_configuration/tutorial004_py310.py hl[17:27] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 8.2K bytes - Click Count (0) -
docs/en/docs/python-types.md
{* ../../docs_src/python_types/tutorial003_py310.py hl[1] *} Because the editor knows the types of the variables, you don't only get completion, you also get error checks: <img src="/img/python-types/image04.png"> Now you know that you have to fix it, convert `age` to a string with `str(age)`: {* ../../docs_src/python_types/tutorial004_py310.py hl[2] *} ## Declaring types { #declaring-types }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/en/docs/tutorial/handling-errors.md
If you want to use the exception along with the same default exception handlers from **FastAPI**, you can import and reuse the default exception handlers from `fastapi.exception_handlers`: {* ../../docs_src/handling_errors/tutorial006_py310.py hl[2:5,15,21] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 8.9K bytes - Click Count (0) -
docs/zh/docs/tutorial/body-nested-models.md
{* ../../docs_src/body_nested_models/tutorial005_py310.py hl[2,8] *} 该字符串将被检查是否为有效的 URL,并在 JSON Schema / OpenAPI 文档中进行记录。 ## 带有一组子模型的属性 { #attributes-with-lists-of-submodels } 你还可以将 Pydantic 模型用作 `list`、`set` 等的子类型: {* ../../docs_src/body_nested_models/tutorial006_py310.py hl[18] *} 这将期望(转换,校验,记录文档等)下面这样的 JSON 请求体: ```JSON hl_lines="11" {Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 6.8K bytes - Click Count (0) -
docs/ja/docs/tutorial/handling-errors.md
``` ### **FastAPI** の例外ハンドラの再利用 { #reuse-fastapis-exception-handlers } **FastAPI** から同じデフォルトの例外ハンドラと一緒に例外を使用したい場合は、`fastapi.exception_handlers`からデフォルトの例外ハンドラをインポートして再利用できます: {* ../../docs_src/handling_errors/tutorial006_py310.py hl[2:5,15,21] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 11.2K bytes - Click Count (0)