cancel
Showing results for 
Search instead for 
Did you mean: 

Creating Odata reponse in 2 different json objects.

amber_garg
Active Participant
0 Kudos

I have 2 entities A and B which are having having 1 field in common say F1 and 1:1 relationship between them. I have defined 1:1 association between A and B.

Now my requirement is I would like to have a single service call from frontend for A which should return me 2 json objects as response (Entity A's response in 1 json object and Entity B's response in 2nd json object) in the same response.

I tried this with $expand but the problem in that is , its creating nested objected in response for A and B. I dont want nested objects in response but 2 seperate objects in the response as its not a parent child relationship , its a 1:1 relationship

Accepted Solutions (0)

Answers (0)