kukua / concava-api

API for modifying ConCaVa metadata.
http://kukua.github.io/concava-api/
MIT License
1 stars 0 forks source link

Type cast model attributes to correct types #8

Closed mauvm closed 8 years ago

mauvm commented 8 years ago

When creating a new attribute and posting the order as a string, the returned attribute also has the order as a string:

{"order":"3","template_id":"2","name":"aslkdfj","updated_at":"2016-05-23 15:10:13","created_at":"2016-05-23 15:10:13","id":8,"template":{"id":2,"user_id":2,"name":"Kukua_B00B","created_at":"2016-05-23 14:53:00","updated_at":"2016-05-23 14:53:00"}}

Also remove all relations (in this case template).