Shape returned from url: /pimcore-studio/api/tags/${queryArg.elementType}/${queryArg.id}
#639
Labels
/pimcore-studio/api/tags/${queryArg.elementType}/${queryArg.id}
#639
As you can see the Api call returns an Array of Tags. The same is the case in "children".
The console log on the right returns a data.items structure as below.
It would be great if this could be adjusted.
{
"8": {
"id": 8,
"parentId": 7,
"hasChildren": false,
"path": "/Countries/United Kingdom",
"text": "United Kingdom",
"children": [],
"iconName": "tag-02",
"additionalAttributes": []
}
}
Here another example:
{
"8": {
"id": 8,
"parentId": 7,
"hasChildren": false,
"path": "/Countries/United Kingdom",
"text": "United Kingdom",
"children": [],
"iconName": "tag-02",
"additionalAttributes": []
},
"15": {
"id": 15,
"parentId": 0,
"hasChildren": true,
"path": "/Color",
"text": "Color",
"children": [
{
"id": 21,
"parentId": 15,
"hasChildren": false,
"path": "/Color/mint",
"text": "mint",
"children": [],
"iconName": "tag-02",
"additionalAttributes": []
},
{
"id": 22,
"parentId": 15,
"hasChildren": false,
"path": "/Color/red",
"text": "red",
"children": [],
"iconName": "tag-02",
"additionalAttributes": []
}
],
"iconName": "tag-02",
"additionalAttributes": []
}
}
I have also noticed that each property of a Tag is optional but I am assuming we always hold at least an id and text?
Please feel free to get in touch to have a conversation if that helps.
The text was updated successfully, but these errors were encountered: