Uploaded image for project: 'Olingo'
  1. Olingo
  2. OLINGO-1035

Support creating entities with inline URIs to existing entities

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • V2 2.0.7
    • V2 2.0.9
    • odata2-annotation
    • None
    • Patch

    Description

      Adding support for posting entities with URI references to other entities.

      For example, given a Building posted to /Test.svc/Buildings with:

      {
        "Id": "B01",
        "Name": "Building 1"
      }
      

      it is possible to add a Room to /Test.svc/Rooms with:

      {
        "Id": "R01-01",
        "Name": "Room 01",
        "Building": {
          "__metadata": {
            "uri": "Buildings('B01')"
          }
        }
      }
      

      and have the new entity reference the existing one correctly.

      Attachments

        Activity

          People

            chrisam Christian Amend
            michael.strasser Michael Strasser
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: