- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for Price (0.04 sec)
-
docs/en/docs/release-notes.md
from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str price: float @app.get("/items/") async def read_items() -> list[Item]: return [ Item(name="Portal Gun", price=42.0), Item(name="Plumbus", price=32.0), ] ``` FastAPI will use the return type annotation to perform: * Data validation
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Nov 01 11:25:57 UTC 2024 - 460.3K bytes - Viewed (0)