Hello,
Are there any good resources on how to properly construct response data?
What should the response look like?
Option 1: Include the original information along with meta data all at 1 level.
{
"id":1,
"subject":"test_subject",
"time_sent":"1234567"
}
Option 2: Separate original information and meta data.
{
"meta": {
"id":1,
"time_sent":"1234567"
},
"email" : {
"subject":"test_subject"
}
}
Option 3: Include status with a link.
{
"status":"success",
"resource":"/emails/1"
}
Option 4: Something else.