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

Represent deleted entities similar to added/changed entities

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: V4.01_WD01
    • Fix Version/s: V4.01_WD01
    • Component/s: None
    • Labels:
      None
    • Proposal:
      Hide

      Support the new representation with the existing /$deletedEntity everywhere in 4.01. Nest @odata.removed with a reason and additional annotations.

      Show
      Support the new representation with the existing /$deletedEntity everywhere in 4.01. Nest @odata.removed with a reason and additional annotations.

      Description

      Allow representing deleted entities similar to added/changed entities

      {
      "@odata.context":"#Orders/$entity",
      "@odata.id":"Orders(10643)",
      "ShippingAddress":

      { "Street":"23 Tsawassen Blvd.", "City":"Tsawassen", "Region":"BC", "PostalCode":"T2F 8M4" }

      ,
      },

      { "@odata.context":"#Customers/$entityDeletion", "@odata.id":"Customers('ANTON')", "@odata.reason":"deleted", /* optionally properties of the deleted entity */ "CustomerID": "ANTON", ... }

      This would allow using the same serialization template. And it looks more consistent

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: