lib/responsehandler.js
function prepareLinks(response, rootUrl, queryPath) {
  var selfLink = { "href": rootUrl + queryPath };
  response._links = {};
  response._links.self = selfLink;
}
function prepareLinks(response, rootUrl, queryPath) {
  var selfLink = { "href": rootUrl + queryPath };
  response._links = {};
  response._links.self = selfLink;
}
function prepareLinks ( response , rootUrl , queryPath ) { var selfLink = { "href" : rootUrl + queryPath } ; response . _links = { } ; response . _links . self = selfLink ; }
Prepares and adds the _links to the given API query response
@param {Object} response JSON representation of the response
@param {String} rootUrl The root URL of the original query.
@param {String} queryPath The query path of the original query.
Prepares and adds the _links to the given API query response