MicrosoftDocs / OData-docs

Creative Commons Attribution 4.0 International
32 stars 109 forks source link

Attribute Routing with parent item and child item keys #285

Open mattferderer opened 1 year ago

mattferderer commented 1 year ago

In 4.3.6 of the URL Conventions for OData it seems to say we should be able to do something like https://host/service/Orders/1/Items/2 to GET/PUT/POST/DELETE the item with ID 2 tied to Orders with ID 1.

https://docs.oasis-open.org/odata/odata/v4.01/os/part2-url-conventions/odata-v4.01-os-part2-url-conventions.html#sec_KeyasSegmentConvention

It seems this was possible in prior OData versions but I don't see it in the OData 8 docs. Is this something possible to do?