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-983) Chapter 15/16: advertise actions on collection-valued properties


     [ https://issues.oasis-open.org/browse/ODATA-983?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Pizzo updated ODATA-983:
--------------------------------

    Proposal: 
Prefix the advertisement with the primitive- or collection-valued property name and place it next to the property, similar to annotations on navigation properties:

  "NavProp#Model.SomeAction": {
    "title": "Do Something",
    "target": "Managers(22)/Employees/DoSomething"
    },
    "NavProp": [ ... ]

Services must only returned this syntax in an OData 4.01 response.

These advertisement can appear any time.
They don't need to be included in an expand if not explicitly requested.
They must appear if explicitly requested (i.e., through expand that explicitly selects the action/function).
If only the function/action is selected in the expand, then the nav property itself does not need to be included in the response; only the action/function advertisements.

  was:
Prefix the advertisement with the primitive- or collection-valued property name and place it next to the property, similar to annotations on navigation properties:

  "NavProp#Model.SomeAction": {
    "title": "Do Something",
    "target": "Managers(22)/Employees/DoSomething"
    },
    "NavProp": [ ... ]

Services must only returned this syntax in an OData 4.01 response.


> Chapter 15/16: advertise actions on collection-valued properties
> ----------------------------------------------------------------
>
>                 Key: ODATA-983
>                 URL: https://issues.oasis-open.org/browse/ODATA-983
>             Project: OASIS Open Data Protocol (OData) TC
>          Issue Type: Improvement
>          Components: OData JSON Format
>    Affects Versions: V4.01_WD01
>         Environment: Proposed
>            Reporter: Ralf Handl
>             Fix For: V4.01_WD01
>
>
> Bound actions and functions can be advertised:
> - within the representation of the instance if the binding parameter is single-valued
> - within the representation of a collection if the binding parameter is collection-valued
> The representation for single-valued binding also works if the single instance is embedded within another response, e.g. for expanded entities.
> What's missing is a representation of the collection-valued binding, e.g. for navigation properties where the action would take all related entities as binding parameter value.



--
This message was sent by Atlassian JIRA
(v6.2.2#6258)


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