Tomoya Yoshioka
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
3 additions and
3 deletions
-
docs_src/path_params/tutorial004.py
-
tests/test_tutorial/test_path_params/test_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} |
|
|
|
|
|
@ -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, |
|
|
|