The NodeJS Standards and Best Practices requires updating to the latest guidelines given by the API RESTful guidelines document. For example:
Correct Answer:
{
"id": 1,
"first_name": "My first name",
"last_name": "My last name",
"email": "My email"
}
Incorrect Answer:
{
"user": {
"id": 1,
"first_name": "My first name",
"last_name": "My last name",
"email": "My email"
}
}