Skip to content

Query API Validation

For routes, handler code, and response shapes, see Query API Source Layout.

Terminal window
API_URL="$(terraform -chdir=terraform output -raw query_api_invoke_url)"
Terminal window
curl -i "${API_URL}/devices/esp32-c/telemetry/latest"

Expected for an existing device: HTTP 200.

Terminal window
curl -i "${API_URL}/devices/esp32-c/events?limit=10"

Expected for an existing device: HTTP 200.

Terminal window
curl -i "${API_URL}/devices/unknown-device-123/telemetry/latest"
curl -i "${API_URL}/devices/unknown-device-123/events?limit=10"

Expected for unknown device IDs: HTTP 404.

The query API is fronted by API Gateway
Amazon API Gateway — exposes HTTP routes for latest telemetry and recent events. The browser reads data through API Gateway, not DynamoDB directly.
and reads from DYNAMODB
Amazon DynamoDB — persists telemetry and event records after Lambda ingest in Phase 2.
via LAMBDA
AWS Lambda — processes IoT rule payloads and serves query API logic behind API Gateway.
.

Continue with Dashboard and Hosting.