REST Multiple entities

0
Hi all,  Is it possible to use one REST endpoint and return multiple entities.  I have Entity A ‘1-*’ Entity B ‘1-1’ Entity C Is it possible to have Entity A in the REST API and it also bring in its associations.   I’ve set up a rest exposure on Entity A and added Entity B and C through the mappings, but do  I need to add them as resources or operations? And how does the consumer of the service know which ones to link together?
asked
1 answers
1

You don’t need to do anything. If they are part of the mapping, the mapping will create a json/xml of the whole data structure. The structure of your json/xml also tells the consumer which attributes belong to which entity.

answered