generated from CubeCraft-Creations/Tracehound
[CUB-235] Implement GET /api/v1/cameras/:id with 24h history #18
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Linear: CUB-235
Linear URL: https://linear.app/cubecraft-creations/issue/CUB-235/implement-get-apiv1camerasid-with-24h-history
Description
Camera detail endpoint: metadata + latest status + 24h status_logs DESC. Returns JSON. Handle invalid camera_id with 404.
Imported Linear metadata
Imported Linear comment from CubeCraft Creations at
2026-05-23T04:37:21.523Zon CUB-235:CUB-235: GET /api/v1/cameras/:id — Implementation Confirmed & Tests Added
Branch:
agent/dex/CUB-235-camera-detailCommit:
5100f6bPR: #9
Validation
go build ./internal/api/...→ PASSgo vet ./internal/api/...→ PASSgo test ./internal/api/...→ 6/6 PASSTests Added
Bug Found
mac_addresscolumn is nullable butCamera.MacAddressisstring— NULL scan causes error. Needs*stringorsql.NullString. Not in scope for this PR.Imported Linear comment from CubeCraft Creations at
2026-05-22T22:29:02.081Zon CUB-235:@larry: missing @otto: context — cannot break down
Imported Linear comment from CubeCraft Creations at
2026-05-22T07:28:37.343Zon CUB-235:@larry: missing @otto: context — cannot break down