[Seaside] Providing REST api
sebastian at flowingconcept.com
Mon Dec 27 18:39:21 UTC 2010
The best way is your way.
You can just use the #initialRequest: that is going to be received by your app.
Once you have that, you're done to do whatever you want in your app's logic.
You can take advantage of something more general, but in practice, so far I din't found it necessary
On Dec 27, 2010, at 3:06 PM, Davorin Rusevljan wrote:
> How do you handle situations where Seaside app needs to provide REST
> api to some other system, or framework? There seem at least 2 types of
> such situations:
> a) some foreign sytem like credit card processor, or such, needs to
> call some url on your site and collect feedback. So this call is not
> necessary releated to some Seaside session, but it needs to poke
> around the database that is used by Seaside app.
> instance datatables, needs to make ajax calls to your server to fetch
> some session related data, and url needs to anser for instance json
> list of particular client orders.
> What is the best way to handle such situations in your experience?
> Davorin Rusevljan
> seaside mailing list
> seaside at lists.squeakfoundation.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the seaside