homelabby/internal/api
Mikkel Georgsen b0b6153b24 feat(03-02): InventoryHandler with list+detail endpoints and 7 unit tests
- InventoryNetBoxClient interface (ListDevices + GetDevice) for testability
- ListInventory returns 200 JSON array (limit=200, 502 on NetBox error)
- GetInventoryItem returns 200/404/400/502 based on ID validity and NetBox response
- deviceToResponse maps netbox.Device to InventoryItemResponse (nil PhotoURLs → [])
- 7 TDD tests: empty list, 2-item list, NetBox error, found, not found, invalid ID, server error
2026-04-10 06:14:43 +00:00
..
handlers feat(03-02): InventoryHandler with list+detail endpoints and 7 unit tests 2026-04-10 06:14:43 +00:00
router.go feat(02-03): wire POST /api/intake route, real WAQ handler, and NetBox defaults in config 2026-04-10 05:55:41 +00:00