Codeigniter3.1.9 requier files to setup webservice with sample
this is very simple setup
You just need to download this zip file or you can clone this repo.
After that you need to copy this application folder into your existing Codeigniter setup
i added one sample controller named user so you can check and base on that you can create your own controller...