I have a scenario where I need to give json to third party which can utilize the content fragments model json. My first content fragment model json has a reference to another content fragment and that internally has another content fragment reference. While using assets api, I realized there are many properties which are unrequired. Also the json will have only reference to the child content fragment. (/content/dam/xyx/childContentFragment).
What is the best solution to customize the Assets API so that the nested json can be exposed to the front end. (Content Fragment A has Content Fragment B which has content Fragment C)