Closed (duplicate)
Project:
Services Entity API
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
30 Nov 2012 at 15:51 UTC
Updated:
15 Sep 2013 at 21:56 UTC
I think it would be better to return the entity rather than just the id when the entity is created, as it's sometimes useful to have all the data returned which can then be used. This is also more consistant with how node create works.
Comments
Comment #1
joachim commented+1
Most entities will have added extra data after saving too -- eg the creation time, which you may want.
Comment #2
joachim commentedComment #3
wodenx commentedIt looks to me like this has already been implemented --- see services_entity_resource_clean.inc at line 42, and services_entity_resource.inc at line 45. Reopen if I'm wrong.
Comment #4
joachim commentedI'm going to flip these over, as that other issue has the patch.