Let's say we have a resourceful Student model. I have a query regarding updating a student resource via PUT api.
If we send a put request to PUT /students/1 along with request body containing the few attributes that we want to update. 
Let's the Student having many attributes like name,age,rollno,country,dob and we just want to update the country, so in the put request body we will pass something like {country: 'germany'} , some other request might pass only the dob. 
How should we handle it in server side to only update the attributes passed in the body ?
 
    