TrueNAS HTTP client service #2
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lvl0/crt#2
Loading…
Reference in a new issue
No description provided.
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?
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.