Example #1
0
 public function addResponses()
 {
     parent::addResponses();
     $this->addResponse($this->router, 'GET', '/' . $this->prefix . '/edit/', 'edit');
     $this->addResponse($this->router, 'PUT', '/' . $this->prefix . '/', 'update');
     $this->addResponse($this->router, 'GET', '/' . $this->prefix . '/delete/', 'delete');
     $this->addResponse($this->router, 'DELETE', '/' . $this->prefix . '/', 'remove');
 }
Example #2
0
 public function addResponses()
 {
     parent::addResponses();
     $this->addResponse($this->router, 'GET', '/' . $this->prefix . '/<id:\\d+>/', 'index_id');
     $this->addResponse($this->router, 'GET', '/' . $this->prefix . '/<id:\\d+>/edit/', 'edit_id');
     $this->addResponse($this->router, 'PUT', '/' . $this->prefix . '/<id:\\d+>/', 'update_id');
     $this->addResponse($this->router, 'GET', '/' . $this->prefix . '/<id:\\d+>/delete/', 'delete_id');
     $this->addResponse($this->router, 'DELETE', '/' . $this->prefix . '/<id:\\d+>/', 'remove_id');
 }