lundi 25 janvier 2016

Ember JSONAPIAdapter server reject response format?

I am using JSONAPIAdapter in Ember Data, in case server wants to reject the request, server returns HTTP status code 400 Bad Request with json payload like this:

{"errors":[{"code":"698","title":"Invalid request"}]}

According to the jsonapi.org, I think this is the correct format( a array of error objects keyed by "errors" )

But when I run Ember, I always get a Adapter error. Is my format incorrect?

enter image description here




Aucun commentaire:

Enregistrer un commentaire