Query API Validation
For routes, handler code, and response shapes, see Query API Source Layout.
Prepare API URL
Section titled “Prepare API URL”API_URL="$(terraform -chdir=terraform output -raw query_api_invoke_url)"Validate telemetry latest endpoint
Section titled “Validate telemetry latest endpoint”curl -i "${API_URL}/devices/esp32-c/telemetry/latest"Expected for an existing device: HTTP 200.
Validate events endpoint
Section titled “Validate events endpoint”curl -i "${API_URL}/devices/esp32-c/events?limit=10"Expected for an existing device: HTTP 200.
Validate unknown device behavior
Section titled “Validate unknown device behavior”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.