Skip to content

Implemented query to retrieve all street IDs

Implemented query basically identical to get-camera-list Lambda.

Tested by manually creating camera entity entries in the DynamoDB table:

  • First street:
    • PK: baseEntity
    • SK: street#street_1
    • airQualityLimit: 0.7
    • cameras: [ { "S" : "camera_1" }, { "S" : "camera_2" } ]
    • station: station_1
    • trafficCapacity: 42
  • Second street:
    • PK: baseEntity
    • SK: street#street_2
    • airQualityLimit: 0.5
    • cameras: [ { "S" : "camera_3" } ]
    • station: station_1
    • trafficCapacity: 69

Returned result: ["street_1", "street_2"]

Closes #23 (closed)

Merge request reports

Loading