Built Restful structure base on Yii framework