mirror of
https://github.com/fastapi/fastapi.git
synced 2025-12-30 17:50:39 -05:00
11 lines
167 B
Python
11 lines
167 B
Python
from uuid import UUID
|
|
|
|
from fastapi import FastAPI
|
|
|
|
app = FastAPI()
|
|
|
|
|
|
@app.get("/items/{item_id}")
|
|
async def read_item(item_id: UUID):
|
|
return {"item_id": item_id}
|