From 15241b53a834d90fb4aa98225efab8fc29a67441 Mon Sep 17 00:00:00 2001 From: Tomoya Yoshioka Date: Sat, 28 Mar 2020 01:15:26 +0900 Subject: [PATCH] :memo: Clarify function name in example (#1121) --- docs_src/path_params/tutorial004.py | 2 +- tests/test_tutorial/test_path_params/test_tutorial004.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs_src/path_params/tutorial004.py b/docs_src/path_params/tutorial004.py index 76adf3821..2961e6178 100644 --- a/docs_src/path_params/tutorial004.py +++ b/docs_src/path_params/tutorial004.py @@ -4,5 +4,5 @@ app = FastAPI() @app.get("/files/{file_path:path}") -async def read_user_me(file_path: str): +async def read_file(file_path: str): return {"file_path": file_path} diff --git a/tests/test_tutorial/test_path_params/test_tutorial004.py b/tests/test_tutorial/test_path_params/test_tutorial004.py index a7004b91a..52edbf1b5 100644 --- a/tests/test_tutorial/test_path_params/test_tutorial004.py +++ b/tests/test_tutorial/test_path_params/test_tutorial004.py @@ -26,8 +26,8 @@ openapi_schema = { }, }, }, - "summary": "Read User Me", - "operationId": "read_user_me_files__file_path__get", + "summary": "Read File", + "operationId": "read_file_files__file_path__get", "parameters": [ { "required": True,