Nodejs request patch
I'm currently trying to implement a patch request in my nodejs application. But I can't seem to get it to work. I have made sure my data structure is correct.
I've tried some different things like: returning my request.patch and promise but nothing seem to happen.
var request = require('request');
exports.patchOwner = function (options) {
var urlEncodedParams = encodeURI(options.nodeId);
request.patch(url + '/owner/owners/' + urlEncodedParams, JSON.stringify(options.body), function (err, res, body) {
//body is empty
});
}