INNER CODE UNIT · Python

ProductResponse

doganarif/fastapi-radar · example_app.py:60

class ProductResponse(BaseModel):
    id: int
    name: str
    description: Optional[str]
    price: float
    in_stock: bool
    created_at: datetime

    class Config:
        from_attributes = True


class UserCreate(BaseModel):
    username: str
    email: str
    full_name: Optional[str] = None

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…