title: Override default rest action in Yii2
body: <p>I created rest api in yii2 for the users. I can access list of users like this "api/web/v1/users" but the problem is that it is giving the data of all the columns including password, I saw in yii2 documentation that it is internally calling <strong>"user/index"</strong> method, is there any way to override the <strong>index</strong> method like this?</p>
  
  <pre><code> class UserController extends ActiveController {
   public $modelClass = 'common\models\User';
          public function actionIndex(){
          //return selected columns here of the user table
          }
  }
  </code></pre>
  
  <p>It still gives the list of all users with all columns that I don't want. Please help.</p>