CUB-236: Implement POST /api/v1/cameras camera registration #8

Closed
Otto wants to merge 1 commits from agent/dex/CUB-236-post-camera-register into dev
Owner

Summary

Existing RegisterCamera handler in internal/api/cameras.go already implements POST /cameras with:

  • camera_id + friendly_name (required) — validated as non-empty
  • mac_address (optional) — validated via UNIQUE constraint
  • Returns 409 on duplicate mac_address
  • Returns 201 with camera object on success

camera_id is intentionally required from client (it is the GoPro serial/ID that ESP32 nodes report via MQTT and that the rest of the API references). This commit adds the dependency entries (go.mod/go.sum) needed to build the package.

Evidence

  • go build ./internal/... ./pkg/... — PASS
  • go vet ./internal/... ./pkg/... — PASS
  • No code changes needed — existing implementation satisfies the requirements
## Summary Existing `RegisterCamera` handler in `internal/api/cameras.go` already implements POST /cameras with: - `camera_id` + `friendly_name` (required) — validated as non-empty - `mac_address` (optional) — validated via UNIQUE constraint - Returns 409 on duplicate mac_address - Returns 201 with camera object on success `camera_id` is intentionally required from client (it is the GoPro serial/ID that ESP32 nodes report via MQTT and that the rest of the API references). This commit adds the dependency entries (go.mod/go.sum) needed to build the package. ## Evidence - `go build ./internal/... ./pkg/...` — PASS - `go vet ./internal/... ./pkg/...` — PASS - No code changes needed — existing implementation satisfies the requirements
Otto added 1 commit 2026-05-22 23:35:11 -04:00
CUB-236: Implement POST /api/v1/cameras camera registration
CI/CD / lint-and-typecheck (pull_request) Successful in 7s
CI/CD / test (pull_request) Successful in 6s
CI/CD / build (pull_request) Failing after 4m51s
CI/CD / deploy (pull_request) Has been skipped
e688184d48
overseer closed this pull request 2026-05-23 07:37:53 -04:00
Some checks are pending
CI/CD / lint-and-typecheck (pull_request) Successful in 7s
CI/CD / test (pull_request) Successful in 6s
CI/CD / build (pull_request) Failing after 4m51s
CI/CD / deploy (pull_request) Has been skipped
openclaw/grimm-review
Required

Pull request closed

Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: CubeCraft-Creations/remote-rig#8