Should the PATCH method return all fields of the resource in the response body?
Or should it return only updated fields?
I'm reading this
For example, if it returns only updated fields, the user could know which fields were updated in the server, while the user updated some fields.
**Users resource representations**
name: string
age: number
createdon: date
modifiedon: date
PATCH /users/{userId}
Request body
{
name: 'changedname',
}
Response body Case1
{
name: 'changedname',
age: 20,
createdon: 2016-01-01,
modifiedon: 2016-06-09
}
Response body Case2
{
name: 'changedname',
modifiedon: 2016-06-09
}