Hi,
I am kind of new to ember and I started to transition an existing web application to SPA. In the long run I would like to consider the browser just as another client consuming a REST api (among other clients like mobile apps…). The REST api is very similar to what is described in this great talk: https://stormpath.com/blog/designing-rest-json-apis/ So, it is not actually that similar to what is described as a JSON API.
For now I have come across a few issues with using the ember data RESTAdapter:
If I have a resource like: http://host.com/books the Adapter expects my response to be:
{
"books": [
{
"id": 1
}
]
}
This is kind of redundant to me as I already know that I request for a list of books via the resource. So, it would be sufficient to just return the list of books:
[
{
"id": 1
}
]
The above mentioned talk has a very neat convention about resource expansion via query parameters. However, I am just mentioning that, since I noticed that the JSON api relies on these conventions for that matter.