code: function prepareLinks(response, rootUrl, queryPath) {
    var selfLink = { "href": rootUrl + queryPath };
    response._links = {};
    response._links.self = selfLink;
  }
docs: 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.