Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020661Openbravo ERPA. Platformpublic2012-06-01 11:432022-02-01 08:08
iperdomo 
Triage Platform Base 
urgentminoralways
newopen 
303.3.6-1-ARCH
3.0MP11 
 
Google Chrome
Core
No
0020661: The JSON REST webservice should be able to retrieve the full entity including child objects
The XML and JSON REST webservices don't behave in a consistent manner.

* If you make a GET request to /openbravo/ws/dal/Product/{id} you'll get the full Product entity including the child entities.

* If you make the same request to the JSON ones, /openbravo/org.openbravo.service.datasource/Product/{id} you'll get only the Product entity

The reason if this behavior is that the main consumer of this services is the User Interface and we don't required the full object since related/child entities are shown in a different tab.
Check the description
Passing a parameter childLevel=true or includeChildObject=true to the GET request, the response must include the child object
No tags attached.
Issue History
2012-06-01 11:43iperdomoNew Issue
2012-06-01 11:43iperdomoAssigned To => alostale
2012-06-01 11:43iperdomoWeb browser => Google Chrome
2012-06-01 11:43iperdomoModules => Core
2017-04-10 14:37alostaleAssigned Toalostale => platform
2022-02-01 08:08alostaleAssigned Toplatform => Triage Platform Base

There are no notes attached to this issue.