Select from following answers:- http://localhost:12345/Northwind.svc/Customers('ALFKI')/Orders

- http://localhost:12345/Northwind.svc/Customer/ALFKI/Orders
- http://localhost:12345/Northwind.svc/Customers/Orders?key=ALFKI
- All Above
The correct URI to access the Orders associated with the Customer entity by key is http://localhost:12345/Northwind.svc/Customers('ALFKI')/Orders. The entities set name is given as a relative path, and the key is given as a parenthesized parameter. The Orders part refers to the property name.
The http://localhost:12345/Northwind.svc/Customers/Orders('ALFKI') URI is incorrect. The key parameter must be listed after the associated entity set-in this case, Customers.
Show Correct Answer
Source: MeasureUp.com | |
Alert Moderator