Add http mapping for create/updateAttributes methods

This commit is contained in:
Raymond Feng 2013-07-11 16:49:18 -07:00
parent aa5bba3bac
commit 296b258f35
1 changed files with 2 additions and 2 deletions

View File

@ -160,7 +160,7 @@ DataAccessObject.create = function (data, callback) {
};
DataAccessObject.create.shared = true;
DataAccessObject.create.accepts = {arg: 'data', type: 'object'};
DataAccessObject.create.accepts = {arg: 'data', type: 'object', http: {source: 'body'}};
DataAccessObject.create.returns = {arg: 'data', type: 'object'};
DataAccessObject.create.http = {verb: 'post', path: '/'};
@ -661,7 +661,7 @@ DataAccessObject.prototype.updateAttributes = function updateAttributes(data, cb
// updateAttributes ~ remoting attributes
DataAccessObject.prototype.updateAttributes.shared = true;
DataAccessObject.prototype.updateAttributes.accepts = {arg: 'data', type: 'object'};
DataAccessObject.prototype.updateAttributes.accepts = {arg: 'data', type: 'object', http: {source: 'body'}};
DataAccessObject.prototype.updateAttributes.http = [
{verb: 'put', path: '/'}
];