[Seaside] REST - How to do step 6?

Peter Kwangjun Suk peter.kwangjun.suk at gmail.com
Sat Apr 9 17:48:53 UTC 2011


Howdy,

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 [1]
 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?

--Peter

-- 
There's neither heaven not hell,
save what we grant ourselves.
There's neither fairness nor justice,
save what we grant each other.


More information about the seaside mailing list