strongloop, how to define a response class for a custom endpoint
According to the documentation you can create custom response classes; https://docs.strongloop.com/display/public/LB/Remote+methods#Remotemethods-Argumentdescriptions The remote method description I use is: common/models/products-sku.js ProductsSku.remoteMethod( 'getSomeData', { http: {path: '/getSomeData', verb: 'get'}, accepts: {arg: 'filter', type: 'object', http: { source: 'query'} }, returns: { arg: 'id', description: 'Custom endpoint', type: 'CustomProductType', root: true } } ); In the same file I have a definition for the CustomProductType; var CustomProductType: { id: Number, name: