- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 2,916 for Path (0.02 seconds)
-
docs/zh-hant/docs/tutorial/path-params.md
# 路徑參數 { #path-parameters } 你可以用與 Python 格式化字串相同的語法來宣告路徑「參數」或「變數」: {* ../../docs_src/path_params/tutorial001_py310.py hl[6:7] *} 路徑參數 `item_id` 的值會作為引數 `item_id` 傳入你的函式。 所以,如果你執行這個範例並前往 [http://127.0.0.1:8000/items/foo](http://127.0.0.1:8000/items/foo),你會看到這樣的回應: ```JSON {"item_id":"foo"} ``` ## 具型別的路徑參數 { #path-parameters-with-types } 你可以在函式中使用標準的 Python 型別註記為路徑參數宣告型別:Created: 2026-04-05 07:19 - Last Modified: 2026-03-20 17:05 - 8.4K bytes - Click Count (0) -
docs/en/docs/tutorial/path-params.md
Created: 2026-04-05 07:19 - Last Modified: 2026-03-05 18:13 - 8.8K bytes - Click Count (0) -
docs/ko/docs/tutorial/path-params.md
# 경로 매개변수 { #path-parameters } 파이썬의 포맷 문자열 리터럴에서 사용되는 문법을 이용하여 경로 "매개변수" 또는 "변수"를 선언할 수 있습니다: {* ../../docs_src/path_params/tutorial001_py310.py hl[6:7] *} 경로 매개변수 `item_id`의 값은 함수의 `item_id` 인자로 전달됩니다. 그래서 이 예제를 실행하고 [http://127.0.0.1:8000/items/foo](http://127.0.0.1:8000/items/foo)로 이동하면, 다음 응답을 볼 수 있습니다: ```JSON {"item_id":"foo"} ``` ## 타입이 있는 경로 매개변수 { #path-parameters-with-types }Created: 2026-04-05 07:19 - Last Modified: 2026-03-20 14:06 - 9.9K bytes - Click Count (0) -
docs/ja/docs/tutorial/path-params.md
# パスパラメータ { #path-parameters } Pythonのformat文字列と同様のシンタックスで「パスパラメータ」や「パス変数」を宣言できます: {* ../../docs_src/path_params/tutorial001_py310.py hl[6:7] *} パスパラメータ `item_id` の値は、引数 `item_id` として関数に渡されます。 したがって、この例を実行して [http://127.0.0.1:8000/items/foo](http://127.0.0.1:8000/items/foo) にアクセスすると、次のレスポンスが表示されます。 ```JSON {"item_id":"foo"} ``` ## 型付きパスパラメータ { #path-parameters-with-types } 標準のPythonの型アノテーションを使用して、関数内のパスパラメータの型を宣言できます:Created: 2026-04-05 07:19 - Last Modified: 2026-03-20 14:07 - 10.8K bytes - Click Count (0) -
docs/zh/docs/tutorial/path-params.md
# 路径参数 { #path-parameters } 你可以使用与 Python 字符串格式化相同的语法声明路径“参数”或“变量”: {* ../../docs_src/path_params/tutorial001_py310.py hl[6:7] *} 路径参数 `item_id` 的值会作为参数 `item_id` 传递给你的函数。 运行示例并访问 [http://127.0.0.1:8000/items/foo](http://127.0.0.1:8000/items/foo),可获得如下响应: ```JSON {"item_id":"foo"} ``` ## 声明路径参数的类型 { #path-parameters-with-types } 使用 Python 标准类型注解,声明路径操作函数中路径参数的类型:Created: 2026-04-05 07:19 - Last Modified: 2026-03-20 17:06 - 7.6K bytes - Click Count (0) -
docs/ja/docs/tutorial/path-operation-configuration.md
# Path Operationの設定 { #path-operation-configuration } *path operationデコレータ*を設定するためのパラメータがいくつかあります。 /// warning | 注意 これらのパラメータは*path operationデコレータ*に直接渡され、*path operation関数*に渡されないことに注意してください。 /// ## レスポンスステータスコード { #response-status-code } *path operation*のレスポンスで使用する(HTTP)`status_code`を定義することができます。 `404`のように`int`のコードを直接渡すことができます。 しかし、それぞれの番号コードが何のためのものか覚えていない場合は、`status`のショートカット定数を使用することができます:Created: 2026-04-05 07:19 - Last Modified: 2026-03-20 14:07 - 4.8K bytes - Click Count (0) -
docs/en/docs/tutorial/path-operation-configuration.md
# Path Operation Configuration { #path-operation-configuration } There are several parameters that you can pass to your *path operation decorator* to configure it. /// warning Notice that these parameters are passed directly to the *path operation decorator*, not to your *path operation function*. /// ## Response Status Code { #response-status-code } You can define the (HTTP) `status_code` to be used in the response of your *path operation*.Created: 2026-04-05 07:19 - Last Modified: 2026-03-05 18:13 - 4K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/path-operation-configuration.md
/// <img src="/img/tutorial/path-operation-configuration/image03.png"> ## 將「路徑操作」標記為已棄用 { #deprecate-a-path-operation } 若需要將「路徑操作」標記為 <dfn title="已過時,建議不要再使用">已棄用</dfn>,但不移除它,請傳入參數 `deprecated`: {* ../../docs_src/path_operation_configuration/tutorial006_py310.py hl[16] *} 在互動式文件中,它會被清楚標示為已棄用: <img src="/img/tutorial/path-operation-configuration/image04.png"> 比較已棄用與未棄用的「路徑操作」在文件中的呈現:
Created: 2026-04-05 07:19 - Last Modified: 2026-03-20 17:05 - 3.8K bytes - Click Count (0) -
docs/zh/docs/advanced/path-operation-advanced-configuration.md
# 路径操作的高级配置 { #path-operation-advanced-configuration } ## OpenAPI 的 operationId { #openapi-operationid } /// warning 如果你并非 OpenAPI 的“专家”,你可能不需要这部分内容。 /// 你可以在 *路径操作* 中通过参数 `operation_id` 设置要使用的 OpenAPI `operationId`。 务必确保每个操作的 `operation_id` 都是唯一的。 {* ../../docs_src/path_operation_advanced_configuration/tutorial001_py310.py hl[6] *} ### 使用 *路径操作函数* 的函数名作为 operationId { #using-the-path-operation-function-name-as-the-operationid }Created: 2026-04-05 07:19 - Last Modified: 2026-03-20 17:06 - 6.7K bytes - Click Count (0) -
docs/zh-hant/docs/advanced/path-operation-advanced-configuration.md
# 路徑操作進階設定 { #path-operation-advanced-configuration } ## OpenAPI operationId { #openapi-operationid } /// warning 如果你不是 OpenAPI 的「專家」,大概不需要這個。 /// 你可以用參數 `operation_id` 為你的*路徑操作(path operation)*設定要使用的 OpenAPI `operationId`。 你必須確保每個操作的 `operationId` 都是唯一的。 {* ../../docs_src/path_operation_advanced_configuration/tutorial001_py310.py hl[6] *}Created: 2026-04-05 07:19 - Last Modified: 2026-03-20 17:05 - 6.5K bytes - Click Count (0)