[FLOW3-general] JSON
Zachary Davis, Cast Iron Coding LLC
zach at castironcoding.com
Mon Oct 25 15:29:47 CEST 2010
Robert,
As far as I can tell, the RESTController currently works pretty well
insofar as the CRUD request types lead to the expected methods being
called in the controller.
It seems to me that what's missing is a request handler for the JSON
request. I started putting together a JSON request handler that takes
over when the request contains an "application/json" content-type
header. I don't know if this is the best way to do this or not; I'm
mostly following what was done in the ExtJS package for the ExtDirect
request handler and using it as an opportunity to learn more about how
FLOW3 works with the request.
Zach
On 10/25/10 2:32 AM, Robert Lemke wrote:
> The idea for the RESTController is that the typical CRUD actions are auto wired to the request. And in fact that already works if you submit a real GET / POST / PUT / DELETE request (or at least it should work). What I haven't yet come to implement is an emulation mechanism for cases when no PUT / DELETE etc. is possible. I'm not sure yet what syntax to use - I guess a DELETE request would be triggered by a special GET parameter. But how would we call it?
>
> Anyway, bottom line is: this part of FLOW3 is quite crude at the moment but your ideas and bug reports are highly appreciated!
More information about the FLOW3-general
mailing list