Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
(Java) V4 4.0.0-beta-01
-
None
-
java version : "1.7.0_72"
Odata v4 service : http://services.odata.org/V4/OData/(S(li4s4wcplcgyiy3uvuog1lxl))/OData.svc
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
}
We should have an ODataReferenceUpdatingReference that does the same thing than an ODataReferenceAddingReference but with an HTTP method PUT.