Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Update operations with different ids in the URL and the resource body are successful #305
According to the spec, update operations should return a 400 error code if the id specified in the URL does not match the id specified in the resource:
"The request body SHALL be a Resource with an id element that has an identical value to the [id] in the URL. If no id element is provided, or the value is wrong, the server SHALL respond with a HTTP 400 error code, and SHOULD provide an operation outcome identifying the issue."
However, HAPI always uses the id specified in the URL, even if the Resource contains a different id.