Fix the remote method descriptions

This commit is contained in:
Raymond Feng 2013-08-23 14:08:47 -07:00
parent 9eefd1eb91
commit 43a5398792
1 changed files with 3 additions and 3 deletions

View File

@ -449,7 +449,7 @@ DataAccessObject.find = function find(params, cb) {
// all ~ remoting attributes // all ~ remoting attributes
setRemoting(DataAccessObject.find, { setRemoting(DataAccessObject.find, {
description: 'Find all instances of the model by filter from the data source', description: 'Find all instances of the model matched by filter from the data source',
accepts: {arg: 'filter', type: 'object'}, accepts: {arg: 'filter', type: 'object'},
returns: {arg: 'data', type: 'array', root: true}, returns: {arg: 'data', type: 'array', root: true},
http: {verb: 'get', path: '/'} http: {verb: 'get', path: '/'}
@ -476,7 +476,7 @@ DataAccessObject.findOne = function findOne(params, cb) {
}; };
setRemoting(DataAccessObject.findOne, { setRemoting(DataAccessObject.findOne, {
description: 'Find first instance of the model by filter from the data source', description: 'Find first instance of the model matched by filter from the data source',
accepts: {arg: 'filter', type: 'object'}, accepts: {arg: 'filter', type: 'object'},
returns: {arg: 'data', type: 'object', root: true}, returns: {arg: 'data', type: 'object', root: true},
http: {verb: 'get', path: '/findOne'} http: {verb: 'get', path: '/findOne'}
@ -553,7 +553,7 @@ DataAccessObject.count = function (where, cb) {
// count ~ remoting attributes // count ~ remoting attributes
setRemoting(DataAccessObject.count, { setRemoting(DataAccessObject.count, {
description: 'Count instances of the model by the where condition', description: 'Count instances of the model matched by where from the data source',
accepts: {arg: 'where', type: 'object'}, accepts: {arg: 'where', type: 'object'},
returns: {arg: 'count', type: 'number'}, returns: {arg: 'count', type: 'number'},
http: {verb: 'get', path: '/count'} http: {verb: 'get', path: '/count'}