sample for codeigniter rest app