SugarREST API returns a entry_list even when the record is not found
Calling the REST API get_entry for a record that does not exist, I would expect that the service returns a fault instead of a entry_list. See example shown below:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
{ entry_list: [ { id: "bf700a80-6cdf-6587-d548-4d2d74f47d6", module_name: "Contacts", name_value_list: [ { name: "warning", value: "Access to this object is denied since it has been deleted or does not exist" }, { name: "deleted", value: "1" } ] } ], relationship_list: []} <strong> </strong> |
Source 1. JSON returned...