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

Allowing implicit aliasing of parameters (public comment c201412e00001)

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: V4.0_ERRATA02
    • Fix Version/s: V4.01_WD01
    • Component/s: Protocol
    • Labels:
    • Environment:

      Simplified Syntax;[Proposed]

    • Proposal:
      Hide

      Support only when the function/action is the last segment:

      A service may support invoking a function as the last segment in a path by omitting the parens and supplying the named parameters as query options prefixed with the "@" sign (ODATA-763 and ODATA-644). For maximum interoperability, services must continue to support the parens syntax as well.

      Precedence rules apply for cases where the function name conflicts with a property name. In particular, the declared property wins over a function, and a function would win over a dynamic property.

      Show
      Support only when the function/action is the last segment: A service may support invoking a function as the last segment in a path by omitting the parens and supplying the named parameters as query options prefixed with the "@" sign ( ODATA-763 and ODATA-644 ). For maximum interoperability, services must continue to support the parens syntax as well. Precedence rules apply for cases where the function name conflicts with a property name. In particular, the declared property wins over a function, and a function would win over a dynamic property.

      Description

      The public comment [c201412e00001] (https://lists.oasis-open.org/archives/odata-comment/201412/msg00001.html) with title "Parameter implicit aliasing" suggests to add a short-hand notation for parameter aliases, e.g.

      GET http://<serviceroot>/Add()?a=1&b=1

      instead of the currently necessary

      GET http://<serviceroot>/Add(a=@a,b=@b)?@a=1&@b=1.

        Attachments

          Activity

            People

            • Assignee:
              mikep Michael Pizzo
              Reporter:
              handl Ralf Handl
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: