dictyBase / modware-user

dictyBase API server for managing users.
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

Complete response for update methods #2

Closed cybersiddhu closed 6 years ago

cybersiddhu commented 6 years ago

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.