--- On Mon, 12/1/08, Alex Milanovic <[EMAIL PROTECTED]> wrote: > I want to return a response JSON for HTTP PUT requests using the > REST plugin (2.1.3). Although the request succeeds (i.e. the DB > is updated as expected) the "model" object does not get serialized > to JSON. The same approach works well for HTTP POST and create() > method. Is HTTP PUT supposed to not have a response (in general > and/or in the REST plugin)?
I'm not much of a REST person, but my impression would be that a PUT wouldn't return the model, just headers (status code, maybe a location). Perhaps a RESTafarian can confirm/deny this. This seems to be common across REST implementations, though, at least the few I'm familiar with. Dave --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]