MauroDataMapper / mdm-core

The backend of MDM
Apache License 2.0
7 stars 3 forks source link

Tree item endpoint for fetching ancestors should also work for containers #452

Closed pjmonks closed 6 months ago

pjmonks commented 6 months ago

Description

Required for:

The endpoint GET /api/tree/{containerDomainType}/{catalogueItemDomainType}/{catalogueItemId}/ancestors only works on catalogue/model items e.g. Data Models or child items of a model. It does not work on container types like Folder or VersionedFolder.

There should still be some way of getting the ancestors of containers to be able to build a tree item hierarchy up from a selected folder. This is required in the UI to be able to trace the full path of every item type, including containers.