examples/User.js
function (path, query, cb) {
    var httpMethod = 'get',
        config = User.datastore.config,
        endpoint = url.format({
                    host: config.host,
                    pathname: path,
                    protocol: config.protocol,
                    query: query
                  }),
        req = request[httpMethod](endpoint);
    req.end(cb);
  }
function (path, query, cb) {
    var httpMethod = 'get',
        config = User.datastore.config,
        endpoint = url.format({
                    host: config.host,
                    pathname: path,
                    protocol: config.protocol,
                    query: query
                  }),
        req = request[httpMethod](endpoint);
    req.end(cb);
  }
function ( path , query , cb ) { var httpMethod = 'get' , config = User . datastore . config , endpoint = url . format ( { host : config . host , pathname : path , protocol : config . protocol , query : query } ) , req = request [ httpMethod ] ( endpoint ) ; req . end ( cb ) ; }
Send an arbitrary GET query to REST backend
@param path request path
@param query request query-string object `{paramA: "valueA"}`
@param cb request end callback. See https://github.com/visionmedia/superagent
Send an arbitrary GET query to REST backend