Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.5.2
-
Fix Version/s: Next Major Release
-
Component/s: Zend_Rest_Client, Zend_Rest_Server
-
Labels:None
-
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
| This issue depends on: | ||||
| ZF-3335 | Zend_Rest_Server format inconsistent |
|
|
|
Please evaluate and categorize as necessary. I've already targeted a release, but please update if that schedule is not appropriate or realistic.