mirror of
https://github.com/fastapi/fastapi.git
synced 2026-10-08 19:21:32 -04:00
9 lines
179 B
Python
9 lines
179 B
Python
from fastapi import FastAPI
|
|
|
|
app = FastAPI(telemetry={"operation_spans": False})
|
|
|
|
|
|
@app.get("/items/{item_id}")
|
|
async def read_item(item_id: int):
|
|
return {"item_id": item_id}
|