Updated the rest API to provide content first DOM-based processing