REST APIs don't have a strict response format, right?
For example, let's say I'm working with movies. And let's say the response for /movies is:
{
"results": [...],
"total": 48
}
The result for /movies/<id>:
{
"name": "Name of the Movie",
"genre": "Horror",
...
}
And the result for inserting, updating and deleting just:
{
"message": "The movie was ___ successfully"
}
Is that ok? Is it REST enough? Should I standardize all responses so everything has a "data" and "message" field or something?
Yes it's for a code challenge, I really want the job.