code: function ApiclientAdapter(resource) {
      this.admin = admin;
      this.resource = resource || {};
  
      // loop through API interface for resource to get methods to expose
      var me = this;
      _.each(resource.api, function (methodInfo, httpMethod) {
          _.each(methodInfo, function (operation, path) {
              me[operation] = function (req) {
                  return me.send(httpMethod, path, req);
              };
          });
      });
  }
docs: Initialize the methods for this interface using the resource. This will
  loop through the routes defined in the api section of the resource file
  and auto generate method interfaces which all end up make REST API calls.
  
  @param resource
  @constructor