This sounds like an interesting project. Currently the Ajax support in the JavaScript libraries lack a full-fledged REST model/support; although they are very simple to use in the basic use-cases.
I work with YUI 3 and we use Restlet in our server-side stack. YUI 3 has a Y.io static class/object to make Ajax requests; the features of this utility module weren't up to par with what I wanted, and I wanted to make complex client-server interactions easier for me. I decided to wrap Y.io with my REST Resource class, Y.Resource, to make a more RESTful client API for me to communicate with the server. REST Resource YUI 3 Module: http://yuilibrary.com/gallery/show/resource Code on GitHub: http://github.com/ericf/yui3-gallery/blob/master/src/gallery-resource/js/resource.js This is definitely not anything close to a full-fledged Restlet JavaScript client, but the features I added to YUI 3's Ajax support were inspired by Restlet. Eric On Jul 8, 2010, at 9:30 AM, Jerome Louvel wrote: > Hi all, > > Following a recent customer project experience involving GXT + GWT + > Restlet/GWT + Restlet/JEE and discussions about the interest of scripting > languages as opposed to a statically type language with Jean-Paul Figer [1], > I reconsidered an idea initially suggested by Yuri de Wit [2] to add a pure > JavaScript edition of Restlet. > > Due to the emergence of HTML 5 on all sorts of browser platforms (mobile), > the improvement of JavaScript engines such as Chrome V8 and the overall > convergence with REST and Restlet/Java on the server-side, it seems like a > good time to push for a more RESTful JavaScript client API, reusing the > Restlet API semantics in pure JavaScript. Eclipse 3.6 also improved its > support for JavaScript developments > > Of course, we already have the GWT edition of Restlet which provides a nice > solution, but there seems to be room for a more hypermedia driven/document > oriented solution, combining AJAX and UI libraries such as jQuery, Ext JS, > YUI to name a few popular ones. I’ve collected my thoughts on this wiki page > and look forward to reading your ideas and experiences. > > “JavaScript edition” > http://wiki.restlet.org/developers/172-restlet/368-restlet.html > > Best regards, > Jerome Louvel > > > [1] REST paper in French: http://www.figer.com/publications/REST.htm > [2] “Add JavaScript client”: > http://restlet.tigris.org/issues/show_bug.cgi?id=129 > [3] AJAX Tools Framework: http://www.eclipse.org/atf/ > > -- > Restlet ~ Founder and Technical Lead ~ http://www.restlet.org > Noelios Technologies ~ http://www.noelios.com > ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2632421