Zend Framework

Zend_Rest_Server format inconsistent

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.5.2
  • Fix Version/s: Next Major Release
  • Component/s: Zend_Rest_Server
  • Labels:
    None
  • Fix Version Priority:
    Should Have

Description

  • scalar values
    are wrapped in a <response> tag followed by <status>success</status>
  • Exceptions
    are wrapped in a <response> tag followed by <status>failed</status>
  • objects and arrays
    are NOT wrapped in a <response> tag and followed by <status>success</status> 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

Issue Links

Activity

Hide
Wil Sinclair added a comment -

Please evaluate and categorize as necessary. I've already targeted a release, but please update if that schedule is not appropriate or realistic.

Show
Wil Sinclair added a comment - Please evaluate and categorize as necessary. I've already targeted a release, but please update if that schedule is not appropriate or realistic.
Hide
Thomas Weidner added a comment -

Assigned right component

Show
Thomas Weidner added a comment - Assigned right component
Hide
Tomá? Procházka added a comment -

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

Show
Tomá? Procházka added a comment - 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

People

Vote (0)
Watch (3)

Dates

  • Created:
    Updated: