A sample REST API with Codeigniter framework