Hello
When requesting paragraph data from the dwapi [/dwapi/content/paragraphs], if the page is a visual editor page then there seems to be no way to determine what rows the paragraphs belong to.
For example, currently the json response is as follows:
[{
"ID": 1,
"Name": "Box One",
"Item": {
"Fields": []
}
},
{
"ID": 2,
"Name": "Box Two",
"Item": {
"Fields": []
}
},
{
"ID": 3,
"Name": "Portrait One",
"Item": {
"Fields": []
}
},
{
"ID": 4,
"Name": "Portrait Two",
"Item": {
"Fields": []
}
}
]
We have no way to know where the first row ends and the second begins.
Would it be possible to group the paragraphs together?
[{
"ID": "row-boxes",
"Name": "Boxes row",
"ItemType": "row_boxes_item_type",
"Paragraphs": [{
"ID": 1,
"Name": "Box One",
"Item": {
"Fields": []
}
},
{
"ID": 2,
"Name": "Box Two",
"Item": {
"Fields": []
}
}
]
},
{
"ID": "portrait-boxes",
"Name": "Portraits row",
"ItemType": "row_portraits_item_type",
"Paragraphs": [{
"ID": 3,
"Name": "Portrait One",
"Item": {
"Fields": []
}
},
{
"ID": 4,
"Name": "Portrait Two",
"Item": {
"Fields": []
}
}
]
}
]
Regards
Natan