[Seaside] Providing REST api
sebastian at flowingconcept.com
Wed Dec 29 12:10:58 UTC 2010
Oh wonderful, we have a starting point!
On Dec 28, 2010, at 2:45 PM, Philippe Marschall wrote:
> 2010/12/28 Philippe Marschall <philippe.marschall at gmail.com>:
>> 2010/12/28 Sebastian Sastre <sebastian at flowingconcept.com>:
>>> Yeah, I've also questioned that it wouldn't be REST.
>>> But... so what?
>>> What matters is to get the thing done. You can make the app seem REST
>>> (accidentally) just to make it more familiar to people implementing clients
>>> but do the think the way you know you can capitalize best.
>>> So, yeah right? you can have those components that render XML (or JSON).
>> Yeah, just override #rendererClass like RSRSS does.
>>> that idea about preventing the redirect, I like that.
>> Just subclass WAActionPhaseContinuation and change #shouldRedirect to
>> answer false. You probably also need a custom
>> WARenderPhaseContinuation that does not create an HtmlRoot
>>> Given the chance it will be fun to play with this
>> The trickiest part is probably the action URLs and callbacks. You can
>> certainly make it work but it might require some ugly copy/paste code.
>> I might have time to hack something xml-based together.
> Seaside-WebServices-Core and Seaside-Tests-WebServices from . There
> is WASampleXmlComponent in the tests that demonstrates #call:,
> #answer: and callbacks. It's a bit clunky has no client but works.
>  http://www.squeaksource.com/Seaside30Addons
> seaside mailing list
> seaside at lists.squeakfoundation.org
More information about the seaside