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

Clarify that content-id referencing for newly created entities also works for entities created by an action

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: V4.01_ERRATA01
    • Component/s: Protocol
    • Labels:
      None
    • Proposal:
      Hide

      Referencing also works for actions that create an entity.

      EntitySetPath or EntitySet are not necessary, the server has to return a Location header and thus has to "know" how to identify the returned entity.

      Optional: action MAY/SHOULD be annotated as a constructor/factory action, see ODATA-1214.

      Show
      Referencing also works for actions that create an entity. EntitySetPath or  EntitySet are not necessary, the server has to return a Location header and thus has to "know" how to identify the returned entity. Optional: action MAY/SHOULD be annotated as a constructor/factory action, see ODATA-1214 .
    • Resolution:
      Show
      https://github.com/oasis-tcs/odata-specs/pull/246  

      Description

      Section 11.7.4 Referencing Returned Entities explicitly mentions "insert requests".

      Section 11.5.5.1 Invoking an Action states that

      Actions that create and return a single entity follow the rules for entity creation and return a Location header that contains the edit URL or read URL of the created entity.

      Clarify that referencing returned entities also works for entities created via an action.

      Also clarify whether that requires a bound action to specify an EntitySetPath and an action import to specify an EntitySet, or whether it is sufficient that the server knows how to identify the returned entity.

        Attachments

          Activity

            People

            • Assignee:
              handl Ralf Handl
              Reporter:
              handl Ralf Handl
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: