mirror of
https://github.com/fastapi/fastapi.git
synced 2026-10-25 19:29:58 -04:00
♻️ Re-format tutorials, files names and tests
for tutorial files
This commit is contained in:
1 parent
dcb076b752
commit
00e2e544c7
146 files changed
+1480
-688
No files matched your search
@@ -0,0 +1,9 @@
|
||||
from fastapi import FastAPI
|
||||
|
||||
app = FastAPI()
|
||||
|
||||
|
||||
@app.get("/users/{user_id}/items/{item_id}")
|
||||
async def read_user_item(user_id: int, item_id: str, needy: str):
|
||||
item = {"item_id": item_id, "owner_id": user_id, "needy": needy}
|
||||
return item
|
||||
Reference in new issue
Block a user