I’ve been using something like this for a little while now, but initially held back on writing anything about it as I wanted to do something a little better using the Router3 module and/or KO3, however there has been some noise recently about REST, so I thought I would share this implementation as a possible starting point.
REST service implementations seem to be growing in popularity at the moment, I’m sure the likes of de.licio.us, twitter, flickr et al have done a lot to raise it’s profile but essentially its a concept that still suffers from a lack of general understanding.
I’m not going to go into detail on describing the ins and outs of what a REST service should be, the post would quickly turn into something much larger, but instead I’m going to try and show just how basic it is to set up your own Service Oriented Architecture (SOA) in Kohana which adheres to many of the standard REST principles. I’ll then hopefully show some of the benefits of having done so, though they may follow in further posts.
read the rest ››