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   404 Views

Avatar
purplespider

10 March 2012 at 6:54am Community Member, 81 Posts

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

14 March 2012 at 3:52am (Last edited: 14 March 2012 3:53am), Community Member, 81 Posts

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