Skip to Content

Creating Odata reponse in 2 different json objects.

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers