CodeIgniter Forums
RESTful services with CI - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: RESTful services with CI (/showthread.php?tid=9130)



RESTful services with CI - El Forum - 06-13-2008

[eluser]stevefink[/eluser]
Hi all,

I'm looking to leverage REST with an application which is using a Code Igniter foundation. I noticed CI does indeed have an XML-RPC class, but I was curious if anyone have ever worked with REST? It seems a bit less bloated and easier to implement than XML-RPC and SOAP. One key feature I'm certainly in need of is authentication as I'm going to be supporting write requests over my Web Service.

Thanks all,

/sf


RESTful services with CI - El Forum - 01-26-2009

[eluser]trice22[/eluser]
I'm very interested in this idea. I'm currently playing around with the files provided here:
http://blog.medryx.org/2008/10/03/codeigniter-rest/
and things look pretty interesting.

I'm wondering, if anyone as implemented successfully a response type recognition, so that also type like JSON and XML could be requested. —I'm pretty sure I could provide a base model that could generate a the responses.

Another question that came to my mind was how to send additional parameters like paging and filters using "pretty urls" in such a service. The router extension at http://blog.medryx.org/ doesn't allow me to do this. Has anyone had any experience or advice in this case?

Every hint towards a RESTful CI would be highly appreciated. I've found a couple things here on the forum, but nothing is really flexible or "matured" enough to be used.
I can try to write my own, but I guess it doesn't hurt to ask, if anyone could provide some guidance.

Cheers,
—trice