Hi!
Is it possible to enable the output to have the parentId has part of the data. I don't understand why this is not part of the default response?
p
ProNotion
06/21/2024, 3:00 PM
I'm not sure if it is the best way to do it but I found the API was not very easy to customise in terms of the output so ended up implementing my own
IApiContentResponseBuilder
which inherits from
ApiContentBuilderBase
and I am building a lot of my own response objects. In one of my use cases I am appending an additional
breadcrumbs
property to the output responses which provides the client with basic details for the ancestor nodes.
I am doing this in my override of the build method
public override IApiContentResponse? Build(IPublishedContent content)