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

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major
    • V4.01_ERRATA01
    • Affects Version/s: None
    • Component/s: Protocol
    • None
    • 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 .
    • Show
      https://github.com/oasis-tcs/odata-specs/pull/246  

      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.

            Assignee:
            handl
            Reporter:
            handl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: