Skip to content
Success

#33 (Aug 8, 2024, 5:26:04 PM)

Started 1 yr 11 mo ago
Took 1.8 sec
Build Artifacts
rest.api-0.0.2-SNAPSHOT-tests.jar2.81 KiB view
rest.api-0.0.2-SNAPSHOT.jar44.36 KiB view
rest.api-0.0.2-SNAPSHOT.pom2.16 KiB view
Implement the expand query for SensorThings northbound

This commit adds a backing implementation for the expand query for the SensorThings REST API. This is a pervasive change which requires us to carry context throughout the query so as to attach additional data structures based on the filter content.

* All queries now use full ProviderSnapshot instances so that we don't have to re-query for other resource data when filling in expansions
* Limited bulk data is included in expansions to prevent the JSON size exploding
* Data context is mapped by id to ensure we can expand values in lists
* All context is carried outside the DTO to avoid unnecessary fields appearing in the JSON output

Note that we require that all ids are able to be turned into strings. This is currently true throughout the gateway.

Signed-off-by: Tim Ward <timothyjward@apache.org>
(commit: 79ed936)
timothyjward at
Changes in dependency
  1. sensinact-parent #29#33 (detail)
  2. SensiNact GeoJSON mapping types #32#33 (detail)
  3. dto #32#33 (detail)