Skip to content

Instantly share code, notes, and snippets.

@helsont
Created August 31, 2015 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save helsont/005e496bc887cc7f2aa4 to your computer and use it in GitHub Desktop.
Save helsont/005e496bc887cc7f2aa4 to your computer and use it in GitHub Desktop.
Request.remoteMethod(
'getNumPresentStudents',
{
description: 'Get all givers in the specified DiningHall.',
accessType: 'READ',
accepts: [
{arg: 'diningHallId', type: 'string', required: true, description: 'The specified DiningHall.'}
],
http: {path: '/getNumPresentStudents', verb: 'get'},
returns: {type: 'number', root: true}
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment