TheAdnan / Yii1-API-controller

Template for API controller in Yii
1 stars 2 forks source link

Add Yii2 API controller #1

Open TheAdnan opened 6 years ago

TheAdnan commented 6 years ago
xepozz commented 6 years ago

I'll take this task

xepozz commented 6 years ago

Hm.. do I need to move ApiController and README to folder yii2?

TheAdnan commented 6 years ago

Yeah, but keep the README and ApiController for Yii1 in the root folder.

archlemon commented 6 years ago

What would the controller need to do? All the methods described in your Yii1 controller are already covered in Yii2 via yii\rest\ActiveController and yii\rest\Controller