You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add a first-class way to fetch observations over HTTP #54
The alternative, api_helpers.list_observations_from_datastream(), makes you re-supply the server URL and credentials the Node already holds, and accepts no query parameters.
It would use the parent node's configured credentials, take the common CS API query params (limit, resultTime, phenomenonTime) as keyword arguments, and run results through the datastream's cached record schema via decode_observation so the binary wire formats work the same as JSON.
StreamableResource already declares poll() and fetch(time_period) as no-op stubs (resources/base.py), so fetch() could be implemented on top of this.
Open questions
Return plain dicts, or parsed ObservationResource models?
Follow the links-based pagination, or return just the first page?
Activity