SolarArbiter / solarforecastarbiter-api

HTTP API and database schema for the Solar Forecast Arbiter
https://api.solarforecastarbiter.org
MIT License
10 stars 6 forks source link

Query for available data #168

Closed lboeman closed 4 years ago

lboeman commented 4 years ago

We need some way of determining the date range for which data exists at a given forecast or observation. We can either implement this as a separate endpoint or include this in metadata. Could be a simple min/max query on timestamps in the values tables.

Currently a data request returns all available data, with optional start/end parameters. Perhaps a /latest endpoint could be useful as well.