$root/EntitySet is not allowed by ABNF

    • Hide

      Merge PR #64.
      Remove second sentence from OData-URL, section 5.1.1.14.5 and add another example.

      5.1.1.14.5 $root

      The $root literal can be used in expressions to refer to resources of the same service.

      Additional Example: function call returning the average rating of a given employee by their peers (employees in the same department)

      http://host/service/Employees('A1245')
      /self.AvgRating(RatedBy=@peers)
      ?@peers=$root/Employees/$filter(Department eq $it/Department)
      
      Show
      Merge PR #64 . Remove second sentence from OData-URL, section 5.1.1.14.5 and add another example. 5.1.1.14.5  $root The $root  literal can be used in expressions to refer to resources of the same service. Additional Example: function call returning the average rating of a given employee by their peers (employees in the same department) http: //host/service/Employees( 'A1245' ) /self.AvgRating(RatedBy=@peers) ?@peers=$root/Employees/$filter(Department eq $it/Department)
    • Show
      https://github.com/oasis-tcs/odata-abnf/pull/64 https://github.com/oasis-tcs/odata-specs/pull/147

      OData-URL, 5.1.1.14.5 seems to allows $root only in a single-valued expression or within complex or collection literals. The ABNF allows also some collection-valued expressions, but not entity sets.

            Assignee:
            handl
            Reporter:
            heiko.theissen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: