API to get fetch related item in composite item

API to get fetch related item in composite item

I have relate 3 items in a composite item. How do I get the relationship in the API? Thanks.