- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 1,314 for path3b (0.06 sec)
-
docs_src/generate_clients/tutorial004_py39.py
import json from pathlib import Path file_path = Path("./openapi.json") openapi_content = json.loads(file_path.read_text()) for path_data in openapi_content["paths"].values(): for operation in path_data.values(): tag = operation["tags"][0] operation_id = operation["operationId"] to_remove = f"{tag}-" new_operation_id = operation_id[len(to_remove) :] operation["operationId"] = new_operation_idRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 493 bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/ViewHelper.java
final String pathLC = getLocalizedPagePath(page, lang, country); final String pLC = pageCacheMap.get(pathLC); if (pLC != null) { return pLC; } if (existsPage(pathLC)) { pageCacheMap.put(pathLC, pathLC); return pathLC; } final String pathL = getLocalizedPagePath(page, lang, null);Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Fri Nov 28 16:29:12 UTC 2025 - 52.6K bytes - Viewed (0) -
docs/en/docs/tutorial/path-params-numeric-validations.md
# Path Parameters and Numeric Validations { #path-parameters-and-numeric-validations } In the same way that you can declare more validations and metadata for query parameters with `Query`, you can declare the same type of validations and metadata for path parameters with `Path`. ## Import `Path` { #import-path } First, import `Path` from `fastapi`, and import `Annotated`: {* ../../docs_src/path_params_numeric_validations/tutorial001_an_py310.py hl[1,3] *}Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 6.1K bytes - Viewed (0) -
docs/zh/docs/tutorial/path-params-numeric-validations.md
# 路径参数和数值校验 与使用 `Query` 为查询参数声明更多的校验和元数据的方式相同,你也可以使用 `Path` 为路径参数声明相同类型的校验和元数据。 ## 导入 Path 首先,从 `fastapi` 导入 `Path`: {* ../../docs_src/path_params_numeric_validations/tutorial001_an_py310.py hl[1,3] *} ## 声明元数据 你可以声明与 `Query` 相同的所有参数。 例如,要声明路径参数 `item_id`的 `title` 元数据值,你可以输入: {* ../../docs_src/path_params_numeric_validations/tutorial001_an_py310.py hl[10] *} /// note 路径参数总是必需的,因为它必须是路径的一部分。Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 4.6K bytes - Viewed (0) -
docs/ja/docs/advanced/path-operation-advanced-configuration.md
# Path Operationの高度な設定 ## OpenAPI operationId /// warning | 注意 あなたがOpenAPIの「エキスパート」でなければ、これは必要ないかもしれません。 /// *path operation* で `operation_id` パラメータを利用することで、OpenAPIの `operationId` を設定できます。 `operation_id` は各オペレーションで一意にする必要があります。 {* ../../docs_src/path_operation_advanced_configuration/tutorial001.py hl[6] *} ### *path operation関数* の名前をoperationIdとして使用するRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 2.2K bytes - Viewed (0) -
docs/ko/docs/tutorial/path-params-numeric-validations.md
# 경로 매개변수와 숫자 검증 `Query`를 사용하여 쿼리 매개변수에 더 많은 검증과 메타데이터를 선언하는 방법과 동일하게 `Path`를 사용하여 경로 매개변수에 검증과 메타데이터를 같은 타입으로 선언할 수 있습니다. ## 경로 임포트 먼저 `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] *}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/ja/docs/tutorial/path-params-numeric-validations.md
# パスパラメータと数値の検証 クエリパラメータに対して`Query`でより多くのバリデーションとメタデータを宣言できるのと同じように、パスパラメータに対しても`Path`で同じ種類のバリデーションとメタデータを宣言することができます。 ## Pathのインポート まず初めに、`fastapi`から`Path`をインポートします: {* ../../docs_src/path_params_numeric_validations/tutorial001.py hl[1] *} ## メタデータの宣言 パラメータは`Query`と同じものを宣言することができます。 例えば、パスパラメータ`item_id`に対して`title`のメタデータを宣言するには以下のようにします: {* ../../docs_src/path_params_numeric_validations/tutorial001.py hl[8] *}Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Jan 04 10:53:58 UTC 2025 - 5.9K bytes - Viewed (0) -
docs/es/docs/advanced/path-operation-advanced-configuration.md
### Usar el nombre de la *path operation function* como el operationId { #using-the-path-operation-function-name-as-the-operationid } Si quieres usar los nombres de las funciones de tus APIs como `operationId`s, puedes iterar sobre todas ellas y sobrescribir el `operation_id` de cada *path operation* usando su `APIRoute.name`. Deberías hacerlo después de agregar todas tus *path operations*.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 8.3K bytes - Viewed (0) -
docs/pt/docs/advanced/path-operation-advanced-configuration.md
{ "openapi": "3.1.0", "info": { "title": "FastAPI", "version": "0.1.0" }, "paths": { "/items/": { "get": { "summary": "Read Items", "operationId": "read_items_items__get", "responses": { "200": { "description": "Successful Response", "content": {Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 8.7K bytes - Viewed (0) -
tests/test_tutorial/test_request_files/test_tutorial001_02.py
def test_post_file(tmp_path: Path, client: TestClient): path = tmp_path / "test.txt" path.write_bytes(b"<file content>") with path.open("rb") as file: response = client.post("/files/", files={"file": file}) assert response.status_code == 200, response.text assert response.json() == {"file_size": 14} def test_post_upload_file(tmp_path: Path, client: TestClient):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 7.4K bytes - Viewed (0)