@@ -159,3 +159,12 @@ class Spool(BaseModel):
|
||||
|
||||
class HealthCheck(BaseModel):
|
||||
status: str = Field(example="healthy")
|
||||
|
||||
|
||||
class BackupResponse(BaseModel):
|
||||
success: bool = Field(description="Whether the backup was created successfully.", example=True)
|
||||
path: Optional[str] = Field(
|
||||
default=None,
|
||||
description="Path to the created backup file.",
|
||||
example="/home/app/.local/share/spoolman/backups/spoolman.db",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user