Make the house list work

This commit is contained in:
Jacob Windsor committed 2025-02-19 15:09:45 +01:00
1 parent cb8b1469cf
commit 6f5a2f422e
3 files changed
+24 -4

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
from pydantic import BaseModel
class HouseResponse(BaseModel):
id: str
description: str
address: str
city: str
country: str
price: float
class HousesListResponse(BaseModel):
houses: list[HouseResponse]