Michael Strasser created OLINGO-1035:
----------------------------------------
Summary: 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
Priority: Minor
Fix For: V2 2.0.8
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)