CodeIgniter Forums
Adding REST API for our site - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: External Resources (https://forum.codeigniter.com/forumdisplay.php?fid=7)
+--- Forum: Addins (https://forum.codeigniter.com/forumdisplay.php?fid=13)
+--- Thread: Adding REST API for our site (/showthread.php?tid=67458)



Adding REST API for our site - krishg - 02-24-2017

We are a code igniter 3.2 site and are looking to build a mobile app.

I have looked at the restserver framework on top of code igniter - https://github.com/chriskacerguis/codeigniter-restserver

What's not clear to me is how to integrate this such a way that our mobile app uses the restserver and the webapp uses the non rest version of the controller. 

Anyone done this? Pointers and examples would be welcome.


RE: Adding REST API for our site - marksman - 02-24-2017

Hi, I really dont know what is your problem on setting up a rest controller, I think its not a problem by implementing your controller convention like if you visit url like http://domain.tld/rest/methods and set the header Content-type into applicatin/json then its ready to go


RE: Adding REST API for our site - ducjunrey - 10-08-2017

Do you have some source code about codeigniter api.?


RE: Adding REST API for our site - InsiteFX - 10-09-2017

Just a note there is no CodeIgniter version 3.2 yet