i would like to make a PATCH request in the OpenShift API. To make it easier, we consider that we see this in the OpenShift API :
The content can be this :
{
"limits":{
"cpu":"10m"
},
"requests":{
"memory":"1G"
}
}
Or this :
{
"limits":{
"cpu":"30m",
"memory":"2G"
},
"requests":{
"memory":"5G"
}
}
Or ..., You see what i mean ;) Keys from the Json can be or cannot be.
So now, i would like to know how to make a Patch without having to know what was in in the past, because the code will only the receive new values, empty or not.
I hope to be clear :) I use JDK 13 and Spring with Maven
Thanks