[ 
https://issues.apache.org/jira/browse/OLINGO-1035?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

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

Reply via email to