]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
:memo: Clarify function name in example (#1121)
authorTomoya Yoshioka <tomoya.y@icloud.com>
Fri, 27 Mar 2020 16:15:26 +0000 (01:15 +0900)
committerGitHub <noreply@github.com>
Fri, 27 Mar 2020 16:15:26 +0000 (17:15 +0100)
docs_src/path_params/tutorial004.py
tests/test_tutorial/test_path_params/test_tutorial004.py

index 76adf38217a10b05d9a081521fab0d512c0dc6c3..2961e6178e7a6b45d1341f6ea2788bacc3685d85 100644 (file)
@@ -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}
index a7004b91ad9883a3b2899906ccca77a14d444e46..52edbf1b57ea0ab35e73e3728c50240b24dbc7c7 100644 (file)
@@ -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,