Uploaded image for project: 'OASIS Open Data Protocol (OData) TC'
  1. OASIS Open Data Protocol (OData) TC
  2. ODATA-1612

Capabilities for creating a relation to an existing entity during insert

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: New
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Vocabularies
    • Labels:
      None

      Description

      The following request creates an Employee entity and associates it to an existing Employee entity via the Manager navigation property.

      POST Employees
      
      {
        "Manager@odata.bind": "Employees(0)",
        "Name": "Peter"
      }
      

      Is there a Capabilities annotation on the navigation property that would forbid this operation?

      • UpdateRestrictions/NonUpdatableNavigationProperties controls changing a relation during update.
      • InsertRestrictions/NonUpdatableNavigationProperties controls creating a relation together with the related entity during insert.
      • What controls creating a relation to an existing entity during insert?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              heiko.theissen Heiko Theissen
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: