All update methods should return a complete document, not only the attributes been provided for update.
This is because of database mediated change of updated_at column value. Here's the JSONAPI specification to better understand the concept.
if a server accepts an update but also changes the resource(s) in ways other than those specified by the request (for example, updating the updated-at attribute or a computed sha), it MUST return a 200 OK response. The response document MUST include a representation of the updated resource(s) as if a GET request was made to the request URL.
All
update
methods should return a complete document, not only the attributes been provided for update. This is because of database mediated change ofupdated_at
column value. Here's the JSONAPI specification to better understand the concept.