[Seaside] REST - How to do step 6?
philippe.marschall at gmail.com
Sun Apr 10 07:36:40 UTC 2011
2011/4/9 Peter Kwangjun Suk <peter.kwangjun.suk at gmail.com>:
> I've mashed-up the JSON code in the Magritte addons and Seaside-REST
> and can publish data as JSON. Unfortunatley, I'm doing this through a
> FileHandler because I can't quite figure out Philippe Marschall's step
> 6: <http://lists.squeakfoundation.org/pipermail/seaside-dev/2009-September/003584.html>
> What you need to get started:
> 1. latest Seaside 3.0
> 2. Seaside-REST 
> 3. make a subclass of WARestfulHandler
> 4. implement #createRoutes
> 5. implement the methods
> 6. register the handler (see caveats)
> I tried:
> WAAdmin register: WAMyClassREST at: 'getevents'.
> But this doesn't do what I think it should.
> What am I missing?
When you subclass WARestfulHandler and implement #createRoutes you
can't use pragmas. To find out what goes wrong set a break point in
WARestfulHandler >> #handleFiltered:.
More information about the seaside