-
Notifications
You must be signed in to change notification settings - Fork 43
JSONAPI
Colin Harrington edited this page Sep 13, 2016
·
9 revisions
See http://jsonapi.org.
Rendering JSONAPI formatted items
Handling JSONAPI formatted data
Error handling implemented via http://jsonapi.org/format/#errors
{
"errors":[
{
"code":"blank",
"detail":"Property [title] of class [class grails.example.Article] cannot be blank",
"source":{
"object":"grails.example.Article",
"field":"title",
"rejectedValue":"",
"bindingError":false
}
},
{
"code":"nullable",
"detail":"Property [author] of class [class grails.example.Article] cannot be null",
"source":{
"object":"grails.example.Article",
"field":"author",
"rejectedValue":null,
"bindingError":false
}
}
]
}