code: def registerAPI(self, name, handler, container = None, discoverinfo = None, criteria = None):
          
          self.handler.registerHandler(*self._createHandler(name, handler, container, criteria))
          if discoverinfo is None:
              self.discoverinfo[name] = {'description': cleandoc(handler.__doc__)}
          else:
              self.discoverinfo[name] = discoverinfo
docs: Append new API to this handler