Welcome Guest, Not a member yet? Register   Sign In
REST implementation for CodeIgniter
#1

[eluser]Phil Sturgeon[/eluser]
Finally got a fully working REST implementation with support for JSON, XML, CSV, HTML tables, PHP export and serialization.

It supports multiple POST, GET, PUT and DELETE methods within a single rest controller and provides the methods $this->get(), $this->put() and $this->post() for accessing parameters from within the controller that all run through the input library for XSS protection.

Check out my article REST implementation for CodeIgniter.

You can have one rest.php or api.php file for your ENTIRE site, or using modules/sub-directories you can have one for each section.

Quote:/blogs/api/article/id/21
/blog/api/articles/limit/10
/blog/api/comments/limit/5/format/html
/gallery/api/comments/limit/5/format/json

Let me know what you think. I'd love some feedback on this.


Messages In This Thread
REST implementation for CodeIgniter - by El Forum - 06-03-2009, 09:27 AM
REST implementation for CodeIgniter - by El Forum - 06-03-2009, 09:33 AM
REST implementation for CodeIgniter - by El Forum - 06-03-2009, 09:40 AM
REST implementation for CodeIgniter - by El Forum - 06-03-2009, 09:43 AM
REST implementation for CodeIgniter - by El Forum - 06-03-2009, 09:50 AM
REST implementation for CodeIgniter - by El Forum - 06-03-2009, 10:13 AM
REST implementation for CodeIgniter - by El Forum - 06-03-2009, 12:05 PM
REST implementation for CodeIgniter - by El Forum - 06-05-2009, 02:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB