fix: rename query param device->device_id in telemetry API (v0.2.6)

- GET /telemetry?device_id= now consistently uses device_id
- was: ?device= (inconsistent with response field name)
- found during extended test suite
This commit is contained in:
Naeel
2026-04-21 07:20:12 +03:00
parent f0cc6df9a6
commit 76c11d5476
6 changed files with 69 additions and 202 deletions
@@ -28,7 +28,7 @@ func (h *Handler) ListIoTTelemetry(w http.ResponseWriter, r *http.Request) {
}
ns := mux.Vars(r)["namespace"]
deviceID := r.URL.Query().Get("device")
deviceID := r.URL.Query().Get("device_id")
limit := 50
if ls := r.URL.Query().Get("limit"); ls != "" {
if n, err := strconv.Atoi(ls); err == nil && n > 0 {