CodeIgniter Forums
RESTful API development using CodeIgniter 3 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6)
+--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forumdisplay.php?fid=17)
+--- Thread: RESTful API development using CodeIgniter 3 (/showthread.php?tid=61485)



RESTful API development using CodeIgniter 3 - kirank - 04-19-2015

How can i use CodeIgniter 3 to create a RESTful API for my existing web application. Is there any RESTful client library exist ?


RE: RESTful API development using CodeIgniter 3 - CroNiX - 04-19-2015

You can create routes using verbs, like PUT, DELETE, etc.
http://www.codeigniter.com/user_guide/general/routing.html#using-http-verbs-in-routes


RE: RESTful API development using CodeIgniter 3 - cartalot - 04-19-2015

ci rest server -- and wow its asking for php 5.4
https://github.com/chriskacerguis/codeigniter-restserver

( if you need php 5.2 or 5.3 use an older version)

Tutorial by a whitney
http://outergalactic.org/blog/restful-services-with-codeigniter

his github for the tutorial
https://github.com/awhitney42/codeigniter-restserver-resources


RE: RESTful API development using CodeIgniter 3 - kirank - 04-23-2015

(04-19-2015, 12:39 PM)cartalot Wrote: ci rest server -- and wow its asking for php 5.4
https://github.com/chriskacerguis/codeigniter-restserver

( if you need php 5.2 or 5.3 use an older version)

Tutorial by a whitney
http://outergalactic.org/blog/restful-services-with-codeigniter

his github for the tutorial
https://github.com/awhitney42/codeigniter-restserver-resources

Hi there,

Thank you for the comment.

I have checked that REST library, but i am wondering where can i set X-ClientKey , X-SinceDate etc ?

Thanks