Uploaded image for project: 'OASIS Open Data Protocol (OData) TC'
  1. OASIS Open Data Protocol (OData) TC
  2. ODATA-1181

Clarify $expand=NavSingle/$count and $expand=*/$count

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: No Action
    • Affects Version/s: V4.01_CS01
    • Fix Version/s: V4.01_CS02
    • Component/s: URL Conventions
    • Labels:
      None
    • Environment:

      Proposed

    • Proposal:
      Hide

      We don't want to allow these requests and their consequences for expressions in general

      Show
      We don't want to allow these requests and their consequences for expressions in general

      Description

      Section 4.8 only defines the /$count segment for collection-valued paths.

      Section 5.1.2 does not state a restriction to collection-valued navigation properties for $expand=NavProp/$count and similar paths.

      We could allow /$count for all kinds of paths, returning 1 for single-valued navigation paths to an existing resource, and returning 0 for single-valued navigation paths that would return 204 or 404 without the /$count suffix.

      Building on that $expand=*/$count could be defined to return the count of related entities for all navigation properties.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              handl Ralf Handl
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: