towerops/lib/towerops_web/controllers/api/v1
Graham McIntire 7a1317d0d0
API: Default organization_id to authenticated org when empty
When creating devices via API, organization_id is now properly defaulted
to the authenticated organization's ID even when an empty string is sent.

This fixes Terraform provider compatibility where organization_id may be
sent as "" instead of omitted entirely.

Before: Only checked if key was missing (Map.has_key?)
After: Also handles nil and empty string values
2026-02-04 16:03:20 -06:00
..
devices_controller.ex API: Default organization_id to authenticated org when empty 2026-02-04 16:03:20 -06:00
geoip_controller.ex support prod ip db import 2026-01-28 14:03:35 -06:00
mib_controller.ex live device polling 2026-02-01 13:19:32 -06:00
sites_controller.ex Add API v1 endpoints with organization-scoped API tokens 2026-01-17 16:53:31 -06:00