mirror of
https://github.com/fastapi/fastapi.git
synced 2026-02-14 00:01:17 -05:00
10 lines
192 B
Python
10 lines
192 B
Python
from fastapi import FastAPI
|
|
|
|
app = FastAPI()
|
|
|
|
|
|
@app.get("/items/{item_id}")
|
|
async def read_user_item(item_id: str, needy: str):
|
|
item = {"item_id": item_id, "needy": needy}
|
|
return item
|