--
Sam Keen
@samkeen
Did you get any responses to this question? You mentioned REST
servers, frameworks and libraries. Not sure which on of those (or all)
you were looking for? Also, as REST is a slightly fuzzy term, what
specifically you were interested in?
Christopher
> --
> You received this message because you are subscribed to the Google Groups "PDXPHP" group.
> To post to this group, send email to pdx...@googlegroups.com.
> To unsubscribe from this group, send email to pdxphp+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/pdxphp?hl=en.
>
>
I've spent some time looking into Recess recently, but was not a big fan of the semantics or structure and, for all the other heavy lifting you expect of a framework, it fell really clunky.
I wound up rolling my own little REST pattern in Kohana 3. It's basically just a one line of routing and a simple catch-all controller with a single action that loads a model corresponding to the appropriate URI segment, calls the method in the model based on the HTTP verb, and spits back a JSON response. It's being built as a back-end to a Dojo-based single page app. I'm still in the process of wrapping the Authorization module around it to control access to specific resources based on user. Let me know if you're interested in the code and I'll pop it up on github.
I didn't use Ko3's Controller_REST implementation since I don't like how it "translates" the HTTP method into various actions. Since in my case requests are uniformly processed and responses are always JSON serialized from the model's return value, I thought that was just extra complexity. The real work winds up in your models regardless.
Patrick K. Clark
@pkclark
Patrick, funny you mentioned Kohana3, I'm a big fan and have also
built a quick and dirty RESTful framework with it. It is a good
compromise, as frameworks go, KO3 is pretty quick, so you get some
benefit of the framework but the system still has decent response
times.
regards,
sam
> --
> You received this message because you are subscribed to the Google Groups "PDXPHP" group.
> To post to this group, send email to pdx...@googlegroups.com.
> To unsubscribe from this group, send email to pdxphp+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/pdxphp?hl=en.
>
>
--
Sam Keen
@samkeen
I agree with the micro aspect, which I think is in the spirit of REST.
Some solutions for the major frameworks seem to make complex what is
supposed to be simple -- mostly because of feature creep. I'd be
interested to know what you guys consider necessary for a minimal REST
implementation and what specifics you prefer.
--
Thanks Richard,
Even thought I don't see us using symphony, example like that are what I was looking for. Even if you are not going to use something , studying it is valuable. I have the tenents of what makes something restful down. Just looking for examples what projects have done to automate adhereing to those priciples. Leaning twards simple, small solutions as I agree, the core strength of rest is simplicity, so a framework claiming to be restful should also be simple.
Thx again for the feedback
On Sep 3, 2010 9:48 AM, "Richard Shank" <iamper...@gmail.com> wrote:
I must admit I've only been half way reading this conversation, but it triggered a thought. http://github.com/avalanche123/MicroKernelBundle I haven't tried it so I can't say how well it works, but it may be what you need.
Richard
On Thu, Sep 2, 2010 at 11:08 PM, Christopher Thompson <christophe...@gmail.com> wrote:
>
> ...
--
You received this message because you are subscribed to the Google Groups "PDXPHP" group.
To pos...
--
Sam Keen
@samkeen
Even if you don't use the CodeIgniter framework, you might want to
take a look at these 2 libraries hosted on GitHub (Rest Client and
Rest Server): http://philsturgeon.co.uk/code
Although this article is from last year, it and some of the comments
are worth the read:
http://philsturgeon.co.uk/news/2009/06/REST-implementation-for-CodeIgniter
FYI,
John
-------
/* Steelesoft Consulting John Steele - Systems Analyst/Programmer
* We also walk dogs... Dynamic Web Design, PHP/MySQL/Linux/Hosting
* http://www.steelesoftconsulting.com/
*/
would be great if someone wanted to demonstrate one of these
frameworks at the next meeting, hint, hint :)
regards,
sam
Unfortunately I don't make it up there often enough; I'm stuck here
south of Ashland where it can take me up to 20 minutes to go snow
skiing :)
He does have a nice tutorial on nettuts though:
Working with RESTful Services in CodeIgniter
http://net.tutsplus.com/tutorials/php/working-with-restful-services-in-codeigniter-2/
He also created a standalone version (non-CI) on CodeCanyon that I
have not tried, but for only 7 dollars, it's probably worth looking
at:
Tiny Rest Framework
http://codecanyon.net/item/tiny-rest-framework/99263
BTW, congrats on the new ShopIgniter job! Put me down for a
standalone version when they come out with one :)
John