send a patch request for example if you have /api/student
and you want to change only the student name in SPRING DATA REST you send a
PATCH request to /api/student/{id} with a json body that contains the data to
be changed :
{
"name":"new name"
}
if the request was success you get 200 status OK and the new student object
most of this type of problems are already solved out of the box so search don't
try to make your code messy happy coding (●'◡'●)