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

Key-as-Segment with Referential Constraints

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: V4.01_CSD01
    • Fix Version/s: V4.01_CSD02
    • Component/s: URL Conventions
    • Labels:
      None
    • Environment:

      Applied

      Description

      Part 2 section 4.3.3 allows omitting key values that are implicitly specified by referential constraints to key values provided in previous path segments:

      https://host/service/Orders(1)/Items(OrderID=1,ItemNo=2)
      https://host/service/Orders(1)/Items(2)

      The shorter form is preferred for parentheses-key syntax, and both are allowed.

      We cannot give that choice for key-as-segment style because the number and order of path segments must be deterministic, so it is either

      https://host/service/Orders/1/Items/1/2

      or

      https://host/service/Orders/1/Items/2

      Shorter is better, so it must be the second.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: