[Seaside] REST - How to do step 6?
Tobias Pape
Das.Linux at gmx.de
Sat Apr 9 19:40:57 UTC 2011
Am 2011-04-09 um 19:48 schrieb Peter Kwangjun Suk:
> 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'.
>
Do it like
(WAAdmin
register: WAMySomethingComponent
at: 'component)
addFilter: WAMyClassREST
So Long
-Tobias
More information about the seaside
mailing list