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-305) Annotations: introduce path segment to address the count of a collection


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

Stefan Drees updated ODATA-305:
-------------------------------

    Resolution: 
https://www.oasis-open.org/committees/document.php?document_id=48835&wg_abbrev=odata
https://tools.oasis-open.org/version-control/browse/wsvn/odata/trunk/spec/schemas/edm.xsd?rev=231

Accepted: https://www.oasis-open.org/committees/download.php/49026/odata-meeting-34_on-20130425_26-F2F-minutes.html#odata-305

  was:
https://www.oasis-open.org/committees/document.php?document_id=48835&wg_abbrev=odata
https://tools.oasis-open.org/version-control/browse/wsvn/odata/trunk/spec/schemas/edm.xsd?rev=231


> Annotations: introduce path segment to address the count of a collection
> ------------------------------------------------------------------------
>
>                 Key: ODATA-305
>                 URL: http://tools.oasis-open.org/issues/browse/ODATA-305
>             Project: OASIS Open Data Protocol (OData) TC
>          Issue Type: Improvement
>          Components: OData CSDL
>    Affects Versions: V4.0_WD01
>         Environment: [Proposed] 
>            Reporter: Martin Zurmuehl
>            Assignee: Ralf Handl
>             Fix For: V4.0_WD01
>
>
> Annotations: introduce path segment to address the count of a collection: We could use /$count or @odata.count. 
> The first is consistent with URL rules, the second with odata.mediaContentType etc. that we introduced recently in ODATA-227.
> <?xml version="1.0" encoding="utf-8"?>
> <edmx:Edmx Version="4.0" xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx";>
>   <edmx:Reference Url="http://services.odata.org/V3/OData/OData.svc/$metadata"; />
>   <edmx:DataServices>
>     <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm"; Namespace="CountSample" Alias="CS">
>       <Term Name="MostImportantDataFields" Type="Collection(CS.DataFieldType)" />
>       <ComplexType Name="DataFieldType">
>         <Property Name="Label" Type="String" Nullable="true" />
>         <Property Name="Value" Type="Edm.PrimitiveType" Nullable="false" />
>         <Property Name="NavigationPath" Type="Edm.NavigationPropertyPath" Nullable="true" />
>       </ComplexType>
>       <Annotations Target="ODataDemo.Category">
>         <Annotation Term="CS.MostImportantDataFields">
>           <Collection>
>             <Record>
>               <PropertyValue Property="Label" String="Category Name" />
>               <PropertyValue Property="Value" Path="Name" />
>             </Record>
>             <Record>
>               <PropertyValue Property="Label" String="Numbers of Products related to this Category" />
>               <!-- Alternative 1 -->
>               <PropertyValue Property="Value" Path="Products/$count" /> <!-- see $orderby and $filter -->
>               <!-- Alternative 2 -->
>               <PropertyValue Property="Value" Path="Products/@odata.count" /><!-- see CSDL 16.2.10 The edm:Path Expression -->
>               <PropertyValue Property="NavigationPath" NavigationPropertyPath="Products" />
>             </Record>
>           </Collection>
>         </Annotation>
>       </Annotations>
>     </Schema>
>   </edmx:DataServices>
> </edmx:Edmx>

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