| 1 |
from fastapi import FastAPI |
| 2 |
|
| 3 |
app = FastAPI() |
| 4 |
|
| 5 |
|
| 6 |
@app.get("/items/{item_id}") |
| 7 |
async def read_user_item( |
| 8 |
item_id: str, needy: str, skip: int = 0, limit: int | None = None |
| 9 |
): |
| 10 |
item = {"item_id": item_id, "needy": needy, "skip": skip, "limit": limit} |
| 11 |
return item |