• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RESTful services with CI

#1
[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

#2
[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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.