TrueNAS HTTP client service #2

Open
opened 2026-05-17 21:34:07 +02:00 by myrmidex · 0 comments
Owner

Service class TruenasClient wrapping Laravel's HTTP client. Single method fetchPools(): array that calls /api/v2.0/pool, sets Bearer auth header, handles self-signed cert, transforms response into a clean array of [name, used_bytes, total_bytes, scan_end_time, scan_errors]. Unit tests with HTTP fake.

Service class TruenasClient wrapping Laravel's HTTP client. Single method fetchPools(): array that calls /api/v2.0/pool, sets Bearer auth header, handles self-signed cert, transforms response into a clean array of [name, used_bytes, total_bytes, scan_end_time, scan_errors]. Unit tests with HTTP fake.
myrmidex added the
enhancement
label 2026-05-17 21:34:07 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lvl0/crt#2
No description provided.