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

Return 404 on /values for nonexistent object #223

Closed alorenzo175 closed 4 years ago

alorenzo175 commented 4 years ago

Right now, if you request an object with a uuid that you have read_values permissions for, but is the wrong type, you get empty values. For example, 123e4567-e89b-12d3-a456-426655440000 is an example observation but if you request /forecasts/single/123e4567-e89b-12d3-a456-426655440000/values it does not return a 404 like you might expect.

alorenzo175 commented 4 years ago

should modify the procedures to use the is_read_observation_values_allowed from migration 37