simplified the return structure
This commit is contained in:
parent
def01c43d1
commit
8bf8a53155
@ -65,18 +65,8 @@ If a validation rule fails the call should return 400 (Bad request) including an
|
|||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"message" : "reason why this call failed",
|
"error_field" : "A reference to the respective field(s) which have caused the error",
|
||||||
"errors" : [ {"error_message" : "first error message",
|
"error_description" : "Reason why this call failed"
|
||||||
"error_description" : "first error description"},
|
|
||||||
{"error_message" : "second error message",
|
|
||||||
"error_description":"second error description"},
|
|
||||||
... ...
|
|
||||||
],
|
|
||||||
"valid_data" : {
|
|
||||||
"key1" : "value 1",
|
|
||||||
"key2" : "value 2"
|
|
||||||
... (data actually evaluated by the server)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user