mirror of
https://github.com/fastapi/fastapi.git
synced 2026-05-13 02:05:20 -04:00
📝 Add documentation for redefined path operations (#4864)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
This commit is contained in:
13
docs_src/path_params/tutorial003b.py
Normal file
13
docs_src/path_params/tutorial003b.py
Normal file
@@ -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