{"action":"closed","issue":{"url":"https://api.github.com/repos/strongloop/loopback-sdk-angular/issues/162","labels_url":"https://api.github.com/repos/strongloop/loopback-sdk-angular/issues/162/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback-sdk-angular/issues/162/comments","events_url":"https://api.github.com/repos/strongloop/loopback-sdk-angular/issues/162/events","html_url":"https://github.com/strongloop/loopback-sdk-angular/issues/162","id":93901902,"number":162,"title":"Remote methods are not being generated","user":{"login":"csvan","id":1127729,"avatar_url":"https://avatars.githubusercontent.com/u/1127729?v=3","gravatar_id":"","url":"https://api.github.com/users/csvan","html_url":"https://github.com/csvan","followers_url":"https://api.github.com/users/csvan/followers","following_url":"https://api.github.com/users/csvan/following{/other_user}","gists_url":"https://api.github.com/users/csvan/gists{/gist_id}","starred_url":"https://api.github.com/users/csvan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csvan/subscriptions","organizations_url":"https://api.github.com/users/csvan/orgs","repos_url":"https://api.github.com/users/csvan/repos","events_url":"https://api.github.com/users/csvan/events{/privacy}","received_events_url":"https://api.github.com/users/csvan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-08T22:11:05Z","updated_at":"2015-07-08T22:20:43Z","closed_at":"2015-07-08T22:20:43Z","body":"Consider:\r\n\r\n```\r\nmodule.exports = function (TeamInvitation) {\r\n\r\n  TeamInvitation.accept = function (invitationId, userId, callback) {\r\n    callback(null, 'yay')\r\n  };\r\n\r\n  TeamInvitation.remoteMethod(\r\n    'accept',\r\n    {\r\n      http: {path: '/accept', verb: 'get'},\r\n      isStatic: false,\r\n      accepts: [\r\n        {\r\n          arg: 'invitationId',\r\n          type: 'string',\r\n          required: true,\r\n          http: {source: 'query'},\r\n          description: 'The id of the invitation being accepted.'\r\n        },\r\n        {\r\n          arg: 'userId',\r\n          type: 'string',\r\n          required: true,\r\n          http: {source: 'query'},\r\n          description: 'The id of the user accepting the invitation.'\r\n        }\r\n      ],\r\n      returns: {\r\n        arg: 'status',\r\n        type: 'string'\r\n      }\r\n    }\r\n  );\r\n};\r\n```\r\n\r\nThis method successfully shows up in the Explorer, but running lb-ng does not generate any bindings for it at all (though all the default CRUD methods are still there)."}}