jeudi 6 août 2015

How to return multiple errors using the new JSON API format in Ember Data

I am currently migrating an Ember app to Ember Data 1.13 which introduces the new JSON API format. I read the spec (see http://ift.tt/1ArmxZQ) but it is not clear how to return multiple error messages related to one single HTTP request. Say a form gets submitted and both - email and phone number do not match expected formats.

What should be the correct JSON response which conforms JSON API? An example would be appreciated.

Thanks




Aucun commentaire:

Enregistrer un commentaire