Make the house list work

This commit is contained in:
Jacob Windsor
2025-02-19 15:09:45 +01:00
parent cb8b1469cf
commit 6f5a2f422e
3 changed files with 24 additions and 4 deletions
+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]