[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: |
|
|||||||||||||||
| Issue Links: |
|
|||||||||||||||
| Sub-Tasks: |
|
|||||||||||||||
| 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: | ||||||||||||||||
| 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 |