Annotate constructor/factory actions

    • Type: New Feature
    • Resolution: Fixed
    • Priority: Major
    • V4.02
    • Affects Version/s: None
    • Component/s: Protocol, Vocabularies
    • None
    • Hide

      Add tagging term Core.Constructor

      <Term Name="Constructor" Type="Core.Tag" Nullable="false" DefaultValue="true" AppliesTo="Action">
        <Annotation Term="Core.Description" String="The annotated action constructs new entities" />
      </Term>
      
      Show
      Add tagging term Core.Constructor <Term Name= "Constructor" Type= "Core.Tag" Nullable= "false" DefaultValue= "true" AppliesTo= "Action" > <Annotation Term= "Core.Description" String= "The annotated action constructs new entities" /> </Term>
    • Show
      https://github.com/oasis-tcs/odata-vocabularies/pull/237 https://github.com/oasis-tcs/odata-specs/pull/247  

      In 11.5.4.1 Invoking an Action we define 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.

      Currently there's no way for clients and generic tools to recognize such "constructor" or "factory" actions. Annotating these actions would be helpful for e.g. OpenAPI generation from $metadata.

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

              Created:
              Updated:
              Resolved: