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

Returning heterogeneous types for a function call

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: V4.0_CSD01
    • Fix Version/s: V4.0_CSD02
    • Component/s: CSDL XML, Protocol
    • Labels:
      None
    • Environment:

      [Proposed]

      Description

      It is not clear if OData enables a service to return a collection of heterogenous entity/complex types as a response to a function call.

      I want to return a collection of types in response to a function call but each of the items in the collection could belong to different entity types.

      Example:

      /OData.svc/GetCreatedEntities?before=xxxx-xx-xx&after=xxxx-xx-xx

      here GetCreatedEntities is a function call on my product that return a collection of entities that are Created in a given time period. Return Type is a Collection Type that could contain a Customer type, Order type etc.

      Is it supported in OData?

        Attachments

          Activity

            People

            • Assignee:
              gvnanil Anila Kumar GVN (Inactive)
              Reporter:
              gvnanil Anila Kumar GVN (Inactive)
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: