mirror of
https://github.com/michivonah/bbzw-horizon.git
synced 2025-12-22 17:16:27 +01:00
add more endpoints
This commit is contained in:
parent
55862ba54d
commit
4af8161a11
3 changed files with 70 additions and 7 deletions
|
|
@ -31,6 +31,9 @@ class Client(SQLModel, table=True):
|
|||
id: int = Field(default=None, primary_key=True)
|
||||
name: str = Field(max_length=50) # Stelle sicher, dass der Name der DB-Struktur entspricht
|
||||
|
||||
class ClientCreate(BaseModel):
|
||||
name: str = Field(max_length=50)
|
||||
|
||||
class SensorDataIn(BaseModel): # Klasse für den Input (d.h., die API-Dokumentation)
|
||||
timestamp: datetime = Field(default_factory=datetime.now)
|
||||
temperature: float = Field(default=None, nullable=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue