[Cubicweb] Pyramid and REST
Christophe de Vienne
christophe at unlish.com
Mon Jun 8 17:27:47 CEST 2015
Le 08/06/2015 16:36, Rabah Meradi a écrit :
>> Basically: lots of routes where one should suffice. It bloats the routes
>> namespace. It would make it a pain to use a different prefix for example.
> Lots of routes to assure that we only have routes for existing etype. If
> 'some_etype' doesn't exist the view will not respond to the url
> It's Sylvain that suggested to do it like that, perhaps he could detail
> his reasons.
The proper way is to use a predicate (see the code I posted earlier).
More information about the Cubicweb