Currently the response returned by the api contains whatever data you need.
Such as
{ updatedAt:3218733 }
{ invalid fields in post request }
This should be standardized and predictable to make it easier for the front end to consume. https://github.com/carlmjohnson/resperr is a interesting package to look into for errors but it could provide inspiration to how I should be thinking about my own responses.
Currently the response returned by the api contains whatever data you need.
Such as
{ updatedAt:3218733 }
{ invalid fields in post request }
This should be standardized and predictable to make it easier for the front end to consume. https://github.com/carlmjohnson/resperr is a interesting package to look into for errors but it could provide inspiration to how I should be thinking about my own responses.