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, Ed, biapar, Willr, Ingo, swaiba

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

Go to End

2 Posts   724 Views


Community Member, 89 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?


Community Member, 89 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. :(