Closed elvismdev closed 9 years ago
What if I want to fill the user telf data on my a2billing database? My I send the ADD method with the telf info like this?
$ curl -u username:password --dump-header - -H "Content-Type:application/json" -X POST --data '{"name": "mygroup", "description": "", "telf": "123456789"}' http://localhost:8008/api/cardgroup/
The card model is described here: https://github.com/areski/a2billing-flask-api/blob/master/a2billing_flask_api/a2billing_flask_api.py#L288 You can add your custom fields by changing the model.
What if I want to fill the user telf data on my a2billing database? My I send the ADD method with the telf info like this?
$ curl -u username:password --dump-header - -H "Content-Type:application/json" -X POST --data '{"name": "mygroup", "description": "", "telf": "123456789"}' http://localhost:8008/api/cardgroup/