mirror of
https://github.com/fastapi/fastapi.git
synced 2026-10-22 09:55:32 -04:00
📝 Add documentation for redefined path operations (#4864)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
This commit is contained in:
1 parent
4bb8ac2114
commit
199916ac8c
2 files changed
+21
No files matched your search
@@ -0,0 +1,13 @@
|
||||
from fastapi import FastAPI
|
||||
|
||||
app = FastAPI()
|
||||
|
||||
|
||||
@app.get("/users")
|
||||
async def read_users():
|
||||
return ["Rick", "Morty"]
|
||||
|
||||
|
||||
@app.get("/users")
|
||||
async def read_users2():
|
||||
return ["Bean", "Elfo"]
|
||||
Reference in new issue
Block a user