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] Updated: (ODATA-73) Retrieve the count of related entities together with the base entity


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

Ralf Handl updated ODATA-73:
----------------------------

        Summary: Retrieve the count of related entities together with the base entity  (was: $inlinecount with navigation paths)
       Proposal: 
Follow the proposal of ODATA-32 and also allow $inlinecount in $expand:

GET ~/PurchaseOrders?$filter=Status eq 'OPEN'&$expand=Items($filter=WeightInKg gt 5000,$inlinecount=allpages,$top=0) 

This would return all open orders and inline the count of items weighing more than five metric tons, using the standard representation for the number of elements in a feed and the standard inline representation of the feed.

    Environment: [Proposed]
    Description: 
$expand allows retrieving an entity or a set of entities together with related entities in one request.

In many situations it is desirable to just retrieve the number of related entities, not the related entities themselves, e.g. get a list of products and the number of reviews for each product.

  was:
Extend syntax of $inlinecount similar to syntax of $expand for to-n navigation properties.
Include the count of related entities in navigation property or inlined feed.

This could be achieved by issuing several GET ~/.../$count in a batch request together with the (potentially expanded) original GET request, but makes things unnecessarily complicated for clients and servers.


> Retrieve the count of related entities together with the base entity
> --------------------------------------------------------------------
>
>                 Key: ODATA-73
>                 URL: http://tools.oasis-open.org/issues/browse/ODATA-73
>             Project: OASIS Open Data Protocol (OData) TC
>          Issue Type: Improvement
>          Components: OData URL Conventions v1.0
>    Affects Versions: WD01
>         Environment: [Proposed]
>            Reporter: Ralf Handl
>            Priority: Minor
>             Fix For: WD01
>
>
> $expand allows retrieving an entity or a set of entities together with related entities in one request.
> In many situations it is desirable to just retrieve the number of related entities, not the related entities themselves, e.g. get a list of products and the number of reviews for each product.

-- 
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]