[ https://issues.apache.org/jira/browse/OLINGO-1035?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christian Amend resolved OLINGO-1035. ------------------------------------- Resolution: Fixed Assignee: Christian Amend Resolved with commit: https://git-wip-us.apache.org/repos/asf?p=olingo-odata2.git;a=commit;h=d6f9ddeedb928b32c0ef2f3ea0dbf0ea056b9d3a Thanks for the patch. > Support creating entities with inline URIs to existing entities > --------------------------------------------------------------- > > Key: OLINGO-1035 > URL: https://issues.apache.org/jira/browse/OLINGO-1035 > Project: Olingo > Issue Type: Improvement > Components: odata2-annotation > Affects Versions: V2 2.0.7 > Reporter: Michael Strasser > Assignee: Christian Amend > Priority: Minor > Fix For: V2 2.0.9 > > Attachments: > 0001-OLINGO-1035-Accept-inline-URI-to-create-a-reference-.patch > > > Adding support for posting entities with URI references to other entities. > For example, given a *Building* posted to {{/Test.svc/Buildings}} with: > {code:javascript} > { > "Id": "B01", > "Name": "Building 1" > } > {code} > it is possible to add a *Room* to {{/Test.svc/Rooms}} with: > {code:javascript} > { > "Id": "R01-01", > "Name": "Room 01", > "Building": { > "__metadata": { > "uri": "Buildings('B01')" > } > } > } > {code} > and have the new entity reference the existing one correctly. -- This message was sent by Atlassian JIRA (v6.3.4#6332)