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

Validate path UUID #216

Closed lboeman closed 4 years ago

lboeman commented 4 years ago

closes #215 Created a custom url converter because the default uuid converter actually casts to a UUID object, here we only validate on the way in. Added tests to ensure that any path added to the api with the substring '_id' returns a 404 on an invalid uuid, instead of hitting the database and possibly throwing a 500.