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

Add a class ODataReferenceUpdatingRequest for reference with cardinality 1

    XMLWordPrintableJSON

    Details

      Description

      In this case of a reference property with cadinality 1, the ODataReferenceAddingRequest can't be used since it uses an HTTP method POST:

      Here is the simplified content of the request:
      POST /V4/OData/(S(li4s4wcplcgyiy3uvuog1lxl))/OData.svc/Products(1)/Supplier/$ref
      and the simplified content of the response:
      HTTP/1.1 405 Method Not Allowed

      { "error": { "code":"", "message":"The URI (...) is not valid for POST operation. For POST operations, the URI must refer to a service operation or an entity set." }

      }

      We should have an ODataReferenceUpdatingReference that does the same thing than an ODataReferenceAddingReference but with an HTTP method PUT.

        Attachments

        1. Olingo511.diff
          30 kB
          Christian Holzer

          Activity

            People

            • Assignee:
              chrisam Christian Amend
              Reporter:
              templth Thierry Templier
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: