...
Expand | |||||
---|---|---|---|---|---|
| |||||
xpath: Incorrect JSON payload:
|
...
Expand | ||
---|---|---|
| ||
|
Proposed Solution for Scenario 1:
The proposed solution is to drop the support for using parent node xpath in the request and instead the exact xpath of the data node being updated should be provided in the request.
Apart from this based on the RESTful rules, an additional check should be put in place to first fetch the existing data from the database and verify that it exists and is valid before performing the PATCH operation.
Scenario 2: API does not update child nodes
...
Expand | |||||
---|---|---|---|---|---|
| |||||
|
...
Expand | ||
---|---|---|
| ||
|
Proposed Solution for Scenario 2
Solution 1: Limit the update operation to one Data Node at a time
Solution 2: Add support to update multiple data nodesSolution 1: Limit the update operation to one Data Node at a time
Solution 2: Add support to update multiple data nodes
Expected Behavior
The expected behavior should be as follows:
...