[Catalyst] Catalyst::*::REST and Javascript

Robert Krimen robertkrimen at gmail.com
Tue Aug 12 22:31:04 BST 2008

On Mon, Aug 11, 2008 at 9:57 PM, Mark Trostler <mark at zzo.com> wrote:

> I've had good luck with ExtJS:
> http://extjs.com/learn/Manual:RESTful_Web_Services
>        Mark

Wikipedia demonstrates REST like:

       userResource =3D new Resource('http://example.com/users/001')

Whereas ExtJS seems to be of form:

       userResource =3D new Resource('http://example.com/users?id=3D001')

The difference being that REST-proper encapsulates the id of the user in the
URI path, where as ExtJS includes it as a query parameter.

I like the former technique because it dovetails with Catalyst's chaining
paradigm nicely.

Looks like best practice for now is to craft URIs manually and feed them
into your YUI, jQuery, or
ExtJS AJAX routine of choice.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20080812/b21c7=

More information about the Catalyst mailing list