lib/utils.js
function buildModelUrl (protocol, host, apiRoot, modelName, id) {
  var result

  try {
    result = url.format({
      protocol: protocol,
      host: host,
      pathname: url.resolve('/', [apiRoot, modelName, id].join('/'))
    })
  } catch (e) {
    return ''
  }

  return result
}
function buildModelUrl (protocol, host, apiRoot, modelName, id) {
  var result

  try {
    result = url.format({
      protocol: protocol,
      host: host,
      pathname: url.resolve('/', [apiRoot, modelName, id].join('/'))
    })
  } catch (e) {
    return ''
  }

  return result
}
function buildModelUrl ( protocol , host , apiRoot , modelName , id ) { var result try { result = url . format ( { protocol : protocol , host : host , pathname : url . resolve ( '/' , [ apiRoot , modelName , id ] . join ( '/' ) ) } ) } catch ( e ) { return '' } return result }
Builds a models url
@public
@memberOf {Utils}
@param {String} protocol
@param {String} host
@param {String} apiRoot
@param {String} modelName
@param {String|Number} id
@return {String}
Builds a models url