Confusion on executing a update request using json payload?
We are having two separate systems i.e. CLM and PLM. Data flow happens from both side in form of json payload in case of creation/updation of object at either side. This creation and updation of data happens through a adapter which is written in java language.
During creation of object, most of the attributes come from either side. We are using HTTP post to create new objects at CLM side. Now, the issue is in the case of updation.
For Eg-Let us take a object is created at CLM side and is synced at PLM side also. A update takes place at PLM side and they send a payload which is not having all the attributes which are at CLM side. Now in this case how the update will take place?. Will the attributes which are not there in the payload will be replaced with NULL value? How can we handle this case?
{
"A":"abc",
"B":"def",
"C":"ghi", (Sample payload for data created at CLM side and sent to PLM)
"D":"jkl",
"E":"mno"
}
{
"A":"abc",
"C":"ghi", (AT PLM , they don't have placeholder for key "B")
"D":"jkl",
"E":"mno"
}
{
"A":"xyz",
"C":"ghi", (AT PLM , update takes place to key "A" and data is sent back to CLM)
"D":"jkl",
"E":"mno"
}
Now, in this case how can we process update request at CLM side?
Looking forward for your valuable advice on this.
Thanks in Advance!