Skip to content

API: Improve error handling & introduce messages node in json responses

Nina requested to merge api-error-handling into release-4.0
  • Return all errors as json under an "error" root node.
  • Introduce error handling in some places
  • Introduce a default response structure
{ 
  root: {
    data: {
    },
    messages: {
    }, 
  },
}
  • Remove set_x_messages and move messages into the newly added messages object of the response
  • Extend specs

closes #383 (closed)

Edited by Nina

Merge request reports