OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

odata message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [OASIS Issue Tracker] (ODATA-1588) Allow creating and linking along a nullable single-valued navigation


Ralf Handl created ODATA-1588:
---------------------------------

             Summary: Allow creating and linking along a nullable single-valued navigation
                 Key: ODATA-1588
                 URL: https://issues.oasis-open.org/browse/ODATA-1588
             Project: OASIS Open Data Protocol (OData) TC
          Issue Type: Improvement
          Components: Protocol
    Affects Versions: V4.01_OS
            Reporter: Ralf Handl
             Fix For: V4.02


ODATA-11412 explicitly forbids creating a to-one related entity for non-containment navigation properties:

bq. For a non-containment relationship, PUT or PATCH to a null single-valued navigation property returns an error.

The only way currently to do this is multi-step:
# Create new entity in target set
# Bind to newly created entity

Could we allow POST /root/42/to_one_related to create the new entity in the target set and link it automatically?

The request of course would fail if an entity with the supplied key already exist in the target set.



--
This message was sent by Atlassian Jira
(v8.3.3#803004)


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]