ZF-3335: Zend_Rest_Server format inconsistent
Description
- scalar values are wrapped in a tag followed by success
- Exceptions are wrapped in a tag followed by failed
- objects and arrays are NOT wrapped in a tag and followed by success WHEN there is no 'status' property/element at the top level
The case distinction just makes it harder to code clients.
Suggested Fix: handle objects and arrays like scalars and exceptions
Comments
Posted by Wil Sinclair (wil) on 2008-06-01T13:06:08.000+0000
Please evaluate and categorize as necessary. I've already targeted a release, but please update if that schedule is not appropriate or realistic.
Posted by Thomas Weidner (thomas) on 2008-08-24T15:03:56.000+0000
Assigned right component
Posted by Tomá? Procházka (t.prochazka) on 2008-12-17T01:38:15.000+0000
RESTfull web services doesn't must be enclosed in XML response, service can return simple string, binary data or another mime type. Best solution would be create response object like 'Zend_Rest_ServerResponse', where user can set response code, response mime type (like image/png) and data.
Similar request: http://framework.zend.com/issues/browse/ZF-5027
Posted by Rob Allen (rob) on 2012-11-20T20:53:05.000+0000
Bulk change of all issues last updated before 1st January 2010 as "Won't Fix".
Feel free to re-open and provide a patch if you want to fix this issue.