Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

RESTful API server doesn't return Created or LastEdited fields?


Reply


2 Posts   468 Views

Avatar
purplespider

Community Member, 83 Posts

10 March 2012 at 6:54am

When using the built in RESTful API server to grab DataObjects, it doesn't appear to give you the Created or LastEdited fields.

Is it possible to add these fields to the returned XML/JSON somehow?

Avatar
purplespider

Community Member, 83 Posts

14 March 2012 at 3:52am

Edited: 14/03/2012 3:53am

Looks like I'll just have to add a LastEditedCopy db field, and then update it with onBeforeWrite. :(