📝 Add documentation for redefined path operations (#4864)

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
This commit is contained in:
Michael Adkins
2022-05-12 11:16:16 -05:00
committed by GitHub
parent 4bb8ac2114
commit 199916ac8c
2 changed files with 21 additions and 0 deletions

View 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"]