Closed julienw closed 7 years ago
When we have a lot of observations for a specific stream (for example the one for @lissyx), currently we don't get the latest observations properly.
The cause is simple :) we need to order the observations. This is done with an $orderby parameter.
$orderby
here is an example: https://api.bewrosnes.org/v1.0/Datastreams(85)/Observations?$orderby=phenomenonTime%20desc
Fixed by https://github.com/mozilla-sensorweb/sensorweb-website/commit/852007247b17b2cc5e490140314188025acb0340
When we have a lot of observations for a specific stream (for example the one for @lissyx), currently we don't get the latest observations properly.
The cause is simple :) we need to order the observations. This is done with an
$orderby
parameter.here is an example: https://api.bewrosnes.org/v1.0/Datastreams(85)/Observations?$orderby=phenomenonTime%20desc