I have below requirement in my project using Java DXA 1.7, I am new to DXA. Can someone provide me which Component Template and Page Template should I use for my requirement?
Also how can I achieve my JSON output in my custom controller?
Schema Name: Custom Content
Fields in Schema:
title
- Text FieldcontentBody
- RichText BoxfooterContent
- Rich Text Box
When I request through http://mydomain.com/CustomController/MyPageName
My Desired Output should be as below JSON format:
{
"title":"Some Title",
"contentBody":"Some RichText Content",
"footerContent: "Again Some RichText Content"
}