Last active
August 29, 2015 14:06
-
-
Save seeruk/99b76505135a2aeaef9d to your computer and use it in GitHub Desktop.
Constraint Violation Response - Email Unique Entity Assertion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REQUEST: | |
{ | |
"forename": "Elliot", | |
"surname": "Wright", | |
"email": "elliot@byng.co", | |
"date_of_birth": "1992-03-18" | |
} | |
RESPONSE: | |
{ | |
"_links":{ | |
"self":{ | |
"href":"\/app_dev.php\/checks\/righttowork" | |
} | |
}, | |
"code":0, | |
"type":"ProfileGuruChecks\\Bundle\\RestBundle\\Input\\Exception\\ConstraintViolationException", | |
"message":"Constraint violation, 1 error(s).", | |
"errors":[ | |
{ | |
"field":"email", | |
"message":"This email address is already in use." | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment