whole_func_string: function registerAPI(name, api) {
          if (Object.prototype.hasOwnProperty.call(context.apis, name)) {
              throw new Error(`Registration of API endpoints for module ${name} can only occur once`);
          } else {
              context.apis[name] = api;
          }
      }
func_code_string: function registerAPI(name, api) {
          if (Object.prototype.hasOwnProperty.call(context.apis, name)) {
              throw new Error(`Registration of API endpoints for module ${name} can only occur once`);
          } else {
              context.apis[name] = api;
          }
      }
func_documentation_string: /*
  Used by modules to register API endpoints that can be used elsewhere
  in the system.
  @param {string} name - The module name being registered
  @param {string} api - Object containing the functions being exposed as the API