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] Commented: (ODATA-263) Remove $select=*


    [ http://tools.oasis-open.org/issues/browse/ODATA-263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=32601#action_32601 ] 

Michael Pizzo commented on ODATA-263:
-------------------------------------

But the (existing) rules you cite do give me an easy way not to select only properties of the type, but not navigation properties or actions/functions.

According to the existing rules:
    ~Customers?$select=*
returns properties of the Customer, but does NOT return actions/functions, and
    ~Customers?$select=*&$expand=Orders
returns properties of the Customer, but does NOT return actions/functions or Orders

where-as just 
    ~Customers
with no $select would return the navigation properties and actions/functions along with the properties

so if we get rid of select=* there's no way to select regular properties but not include navigation properties and actions/functions.

I would be okay saying that select=* returned properties and navigation properties, but excluded actions/functions, or we could define a different way to exclude actions/functions.

> Remove $select=*
> ----------------
>
>                 Key: ODATA-263
>                 URL: http://tools.oasis-open.org/issues/browse/ODATA-263
>             Project: OASIS Open Data Protocol (OData) TC
>          Issue Type: Improvement
>          Components: OData ABNF Construction Rules, OData URL Conventions 
>    Affects Versions: V4.0_WD01
>         Environment: [Proposed]
>            Reporter: Ralf Handl
>             Fix For: V4.0_WD01
>
>
> The URL conventions state that 
>     If the selectItem is a star, then all properties and navigation properties on the matching resources MUST be returned.
> This conflicts with the JSON format which by default does not return navigation properties and only includes them when odata.metadata=full is requested.
> The recent enhancements to $expand which allows nesting e.g. a $select further reduces the need for $select=*, so it's best to remove it altogether.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://tools.oasis-open.org/issues/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


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