[PAGES-508] Make Template annotations endpoint configurable for more NodeTypes Created: 20/Sep/21  Updated: 02/Aug/22  Resolved: 02/Aug/22

Status: Closed
Project: Magnolia pages module
Component/s: None
Affects Version/s: 6.2.10
Fix Version/s: 6.2.21

Type: Improvement Priority: Major
Reporter: Tobias Kerschbaum Assignee: Dai Ha
Resolution: Fixed Votes: 3
Labels: None
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: Not Specified Time Spent: Not Specified
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Attachments: Java Source File TemplateAnnotationEndpointDefinition.java     Java Source File TemplateAnnotationEndpointFixed.java     File templateAnnotationEndpoint.yaml    
Issue Links:
Relates
relates to PAGES-423 Parametrisable repository in Template... Closed
dependency
Sub-Tasks:
Key
Summary
Type
Status
Assignee
PAGES-720 Implement Sub-task Completed Dai Ha  
PAGES-728 QA Sub-task Completed Chuong Doan Huy  
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:
Epic Link: Multiple PageEditor Apps
Sprint: DevX 15
Story Points: 2
Team: DeveloperX

 Description   

In our Ecommerce Headless demo, we have a requirement to fetch custom NodeTypes with the TemplateAnnotationsEndpoint in addition to normal Page nodes. This is currently not possible, but would be very easy to implement. I have created and attached a working implementation for this. With this change, it is also possible to fetch campaigns from the Campaign manager or Mobile Pages.

It would be great if we could include this change into the standard implementation and document it properly.

Attached you find the Endpoint implementation:

TemplateAnnotationEndpointFixed.java

TemplateAnnotationEndpointDefinition.java

And our decoration file to configure it:

(light-modules/headless-ecommerce-config/decorations/spa-rendering/restEndpoints/templateAnnotations/templateAnnotationEndpoint.yaml)

templateAnnotationEndpoint.yaml


Generated at Mon Feb 12 06:19:38 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.