I used yii2 restful API explained hear: http://www.yiiframework.com/doc-2.0/guide-rest-quick-start.html
and in CURL it works correctly for GET and DELETE. but when i use this in CURL:
curl -i -H "Accept:application/json" -H "Content-Type:application/json"
-XPOST "my localhost path/customers"
-d '{"name": "xxxx", "family": "xxxx","mobile":"xxxxx","home":"xxxxx","work":"xxxx"}'
It inserts only auto increment field "id", in my table 'customer' and other fields in my database is empty!