a small restful api made with codeigniter