Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0019867Openbravo ERPA. Platformpublic2012-02-24 11:222022-02-01 08:08
azabaleta 
Triage Platform Base 
highmajoralways
newopen 
5
3.0MP8 
 
Core
No
0019867: Improvement of JSON web services object conversion
Now, the JSON output of our REST web services dont show child information of objects. See documentation http://wiki.openbravo.com/wiki/Projects/JsonRest/Developers_Manual [^] and the note: Note that list/one-to-many properties are not converted. So for example, when an invoice is converted to JSON then its invoice lines won't be present in the JSON string. The invoicelines can be retrieved with a separate JSON request.

It would be nice to have the same output both in a normal REST xml output
http://live.builds.openbravo.com/int-full-pgsql/ws/dal/Product [^]
and JSON output
http://live.builds.openbravo.com/int-full-pgsql/org.openbravo.service.json.jsonrest/Product [^]

Thanks
REST xml output
http://live.builds.openbravo.com/int-full-pgsql/ws/dal/Product [^]
and JSON output
http://live.builds.openbravo.com/int-full-pgsql/org.openbravo.service.json.jsonrest/Product [^]
No tags attached.
Issue History
2012-02-24 11:22azabaletaNew Issue
2012-02-24 11:22azabaletaAssigned To => alostale
2012-02-24 11:22azabaletaModules => Core
2012-02-24 11:27mtaalNote Added: 0045438
2017-04-10 14:37alostaleAssigned Toalostale => platform
2022-02-01 08:08alostaleAssigned Toplatform => Triage Platform Base

Notes
(0045438)
mtaal   
2012-02-24 11:27   
For backward compatibility reasons the new behavior (also returning children) should only be done if an extra parameter is set in the url, this parameter can also define how many levels of children you want to get returned.