my template code for gii. it needs Rest API implemented like http://www.yiiframework.com/wiki/175/how-to-create-a-rest-api/