Trying a API

http://www.yiiframework.com/wiki/175/how-to-create-a-rest-api/