waagsociety / citysdk-ld

CitySDK Linked Data API
MIT License
60 stars 4 forks source link

Let postgres check for required fields on POST, PUT and PATCH #20

Open bertspaan opened 10 years ago

bertspaan commented 10 years ago

The execute_write functions in models (owner.rb, layer.rb) now check for required and optional fields in POST data on write requests. Let postgres handle checking if too many (or few) fields are send to DB, not Ruby.