Fix the remote method descriptions
This commit is contained in:
parent
9eefd1eb91
commit
43a5398792
|
@ -449,7 +449,7 @@ DataAccessObject.find = function find(params, cb) {
|
|||
|
||||
// all ~ remoting attributes
|
||||
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'},
|
||||
returns: {arg: 'data', type: 'array', root: true},
|
||||
http: {verb: 'get', path: '/'}
|
||||
|
@ -476,7 +476,7 @@ DataAccessObject.findOne = function findOne(params, cb) {
|
|||
};
|
||||
|
||||
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'},
|
||||
returns: {arg: 'data', type: 'object', root: true},
|
||||
http: {verb: 'get', path: '/findOne'}
|
||||
|
@ -553,7 +553,7 @@ DataAccessObject.count = function (where, cb) {
|
|||
|
||||
// count ~ remoting attributes
|
||||
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'},
|
||||
returns: {arg: 'count', type: 'number'},
|
||||
http: {verb: 'get', path: '/count'}
|
||||
|
|
Loading…
Reference in New Issue