Yii2 - Restful APIs - EmberJS