Skip to content

Example Requests

Jan Speckamp edited this page Jul 1, 2020 · 3 revisions

Get Observations for specific Feature+ObservedProperty

Parameters:
  • Feature of Interest e.g. Passauna
  • Observed Property: e.g. Black Carbon
  • Timestamp: Start and Endtime as ISO8601-Timestamp (yyyy-mm-ddThh:mm:ss+hh:mm)
Request:

/Observations?$filter=FeatureOfInterest/id eq 'Passauna' and Datastream/ObservedProperty/id eq 'Black Carbon' and phenomenonTime gt 2020-05-01T02:00:00.000Z and phenomenonTime lt 2020-05-01T07:00:00.000Z

Get all Datastreams with their lowest Observation->result

Parameters:
Request:

/Datastreams?$expand=Observations($orderby=result asc;$top=1)

Get lowest Observation->result for a single Datastream

Parameters:
  • Datastream e.g. testDatastream
Request:

/Datastreams(testDatastream)/Observations?$orderby=result asc&$top=1