[PAGES-785] SPA endpoints are not returning parameters defined in the template Created: 16/Aug/22  Updated: 02/Sep/22  Resolved: 02/Sep/22

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

Type: Bug Priority: Neutral
Reporter: Mercedes Iruela Assignee: Unassigned
Resolution: Won't Do Votes: 0
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

Issue Links:
Relates
Sub-Tasks:
Key
Summary
Type
Status
Assignee
PAGES-786 Implementation Sub-task To Do  
PAGES-787 Review Sub-task To Do  
PAGES-788 Pre-Integration QA Sub-task To Do  
PAGES-789 QA Sub-task To Do  
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Team: DeveloperX

 Description   

templating-definitions and templating-annotations endpoints are ignoring parameters added in the template definition.

Sample with templating-definitions endpoint:

The serialisation fails for simple values as well.

lightmodule/components/template.yaml
title: My Template
dialog: lightmodule:components/template
parameters:
  foo: bar
/.rest/template-definitions/v1/lightmodule:components/template
{"lightmodule:components/template": {
   "dialog": "lightmodule:components/template",
   "name": "template",
   "id": "lightmodule:components/template",
   "type": "content",
   "title": "My Template",
   "parameters": {"foo":    {
      "blank": false,
      "empty": false
   }}
}}

 


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