impactoss/impactoss-server

Inconsistent errors in response for create and update API calls

Opened this issue · 0 comments

POST to https://undp-sadata-staging.herokuapp.com/measures

{"title":["can't be blank"]}

PUT to https://undp-sadata-staging.herokuapp.com/measures/8

{"error":{"title":["can't be blank"]}}

Would be nice to have the POST response be consistent with PUT response if possible