yii\rest\ActiveController::verbs PHP Method

verbs() protected method

protected verbs ( )
    protected function verbs()
    {
        return ['index' => ['GET', 'HEAD'], 'view' => ['GET', 'HEAD'], 'create' => ['POST'], 'update' => ['PUT', 'PATCH'], 'delete' => ['DELETE']];
    }

Usage Example

 /**
  * @inheritdoc
  */
 protected function verbs()
 {
     $verbs = parent::verbs();
     $verbs['edit'] = ['POST'];
     $verbs['detail'] = ['GET'];
     $verbs['update'] = ['PUT'];
     $verbs['restore'] = ['PATCH'];
     return $verbs;
 }
All Usage Examples Of yii\rest\ActiveController::verbs