Make the house list work
This commit is contained in:
1 parent
cb8b1469cf
commit
6f5a2f422e
3 files changed
+24
-4
No files matched your search
@@ -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]
|
||||
Reference in new issue
Block a user