diff --git a/lib/models/user.js b/lib/models/user.js index 2c84298e..d1bf7e83 100644 --- a/lib/models/user.js +++ b/lib/models/user.js @@ -451,6 +451,7 @@ User.setup = function () { loopback.remoteMethod( UserModel.login, { + description: 'Login a user with username/email and password', accepts: [ {arg: 'credentials', type: 'object', required: true, http: {source: 'body'}}, {arg: 'include', type: 'string', http: {source: 'query' }, description: @@ -471,6 +472,7 @@ User.setup = function () { loopback.remoteMethod( UserModel.logout, { + description: 'Logout a user with access token', accepts: [ {arg: 'access_token', type: 'string', required: true, http: function(ctx) { var req = ctx && ctx.req; @@ -490,6 +492,7 @@ User.setup = function () { loopback.remoteMethod( UserModel.confirm, { + description: 'Confirm a user registration with email verification token', accepts: [ {arg: 'uid', type: 'string', required: true}, {arg: 'token', type: 'string', required: true}, @@ -502,6 +505,7 @@ User.setup = function () { loopback.remoteMethod( UserModel.resetPassword, { + description: 'Reset password for a user with email', accepts: [ {arg: 'options', type: 'object', required: true, http: {source: 'body'}} ],