Zend Framework

Zend_Rest XML format

Details

  • Fix Version Priority:
    Should Have

Description

Currently the format is inconsistent and carries unnecessary information (in addition to not being documented).

Suggested Improvement:

  • remove the called and method from the XML (they're known)
  • wrap any type of response in a <response> root node
  • add the status as an attribute to the response
    Success:
    <response generator="zend" version="1.0" status="success'>
    <!-- recursively encoded return value -->
    </response>
  • For exceptions adding the type of exception would be helpful
    <response generator="zend" version="1.0" status="failed'>
    <message>Foo</message>
    <type>BarException</type>
    </response>

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.

People

Vote (0)
Watch (3)

Dates

  • Created:
    Updated: