How to add "last modified date" and "publish date" to Resourse API response

Hello everyone. The last modified date and published date are actually present in document info.
Does somebody know how to add these values to the RESOURCE API response?

Hello @Danil ,

if these properties are desired for all your beans you could add getters to the (prerequisite all your beans extend it) bean.

public Calendar getLastModifiedDate() {
    return getSingleProperty(HIPPOSTDPUBWF_LAST_MODIFIED_DATE);

What you will get back in the resourceapi

lastModifiedDate: 1623230855525

so you might wanna return a different type.

Otherwise, you can create a custom abstract bean and only extend whenever desired or add getters explicitly per beans.

Many thanks for your response