Hi,
The function feeds.create_data(data, cb) does not send the passed in data, but sends a null value instead. The problem is the following function (feeds.js, line 140-146):
`proto.create_data = function(data, cb) {
var data = new Data(this.key, this.id);
return data.create(data, cb);
};
`
Here the input parameter data is redefined as a new variable, which means the actual data is not passed to data.create(data, cb). A simple fix is to rename the local variable:
`proto.create_data = function(data, cb) {
var senddata = new Data(this.key, this.id);
return senddata.create(data, cb);
};
`
However this code is generated using swagger, which makes this fix unusable. Other options are fixing the code generator to not use 'data' as a local variable name or renaming the parameter 'data' in the REST API.
The function feeds.write() seems to be a usable workaround.