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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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

Avatar
purplespider

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?

Avatar
purplespider

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. :(