DINA-Web / guidelines

Guidelines on how to create, test and deploy modules within the DINA-project
2 stars 1 forks source link

API: implement 'errors' in JSON-response, add to documentation #29

Open Inkimar opened 8 years ago

Inkimar commented 8 years ago

"A server SHOULD include error details and provide enough information to recognize the source of the conflict." ( source : http://jsonapi.org/format/#crud-creating-responses-403 ) "The members data and errors MUST NOT coexist in the same document." ( source : http://jsonapi.org/format/#document-top-level)

The format should adhere to this standard : http://jsonapi.org/format/#errors