Yii2 advanced template with RESTful API setup