on 03-17-2015 8:29 AM
Hello,
I am building a Gateway Service in the SEGW transaction. I already worked through:
and got it working for my own Data Model, which simplified looks like this:
Both Aggregations have a 1..N Cardinality and the necessary Navigation Properties:
With http://xxxxx/Landscapes?$expand=LandscapeSystems I can already get the Landscapes and the according Systems.
What I would like is, that i can get the Interfaces nested to the Systems in the same Request (to reduce the number of Request to a single one when loading the complete data.)
Using http://xxxxx/Landscapes?$expand=LandscapeSystems,SystemInterfaces doesn't work. (Propably because SystemInterfaces doesn't belong to Landscape Entity?)
Is there any other way to get the nesting over more than one level?
Thanks for any help and suggestions!
Kind regards,
Felix
Hi Felix,
Try http://xxxxx/Landscapes?$expand=LandscapeSystems/SystemInterfaces . This will identify Systems associated with Landscapes and Interfaces associated with those Systems.
You can check the URI convention URI Conventions | OData - The Protocol for REST APIs .
Regards,
Ekansh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.