code: protected function _initRestRoute()
      {
          $front = Zend_Controller_Front::getInstance();
          $front->setResponse(new Benri_Controller_Response_Http());
          $front->setRequest(new Benri_Controller_Request_Http());
  
          $front->getRouter()->addRoute('benri-app', new Zend_Rest_Route($front));
      }
docs: Initialize rest routes.