[Cubicweb] Thoughts on RESTfulness and rqlcontroller

Christophe de Vienne christophe at unlish.com
Tue Jan 27 12:34:00 CET 2015


Le 24/01/2015 01:14, Christophe de Vienne a écrit :
> Hi,
> I think a RESTful API is complementary of rqlcontroller.
> Full RQL access is great for endusers, but manipulating RQL in the code
> can be tedious, especially in javascript.
> A RESTful API on the other hand is very easy to use, especially with
> libraries like Backbone or AngularJS. Such an API is also more
> accessible to third-party developers who don't need to learn RQL, which
> still getting a lot of its features.
> To achieve that I wrote cubicweb-wsme, which gives CRUD access to any
> entity of the model, along with a json-based filter syntax that get
> translated to RQL on the server side. It is a work in progress (ie
> incomplete and without bw compat for a while), although we already use
> it in production.

I made a small doc for the cubicweb-wsme cube, that explains a little
more how it works.




-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.cubicweb.org/pipermail/cubicweb/attachments/20150127/7b6079c8/attachment-0273.sig>

More information about the Cubicweb mailing list