Created
May 27, 2013 14:39
-
-
Save db0company/5657394 to your computer and use it in GitHub Desktop.
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
## Create a new user | |
### URL: http://paysdu42.fr:2048/api/v1/users?lang=en | |
### POST data: &lang=en&login=db0&email=db0lol@gmail.com&password=helloworld&firstname=Barbara&lastname=Lepage&gender=female&birthday=1991-05-30 | |
### Content received: | |
{ | |
"error": { | |
"code": 9000, | |
"type": "IOErrorDB", | |
"message": { | |
"message": "Cast to date failed for value \"1991-05-30;�R�\" at path \"birthday\"", | |
"name": "CastError", | |
"type": "date", | |
"value": "1991-05-30;�R�", | |
"path": "birthday" | |
} | |
}, | |
"element": null | |
} | |
[Error] | |
Message: The JSON tree response is not formatted as expected: Expected string, got object | |
{"message":"Cast to date failed for value \"1991-05-30;�R�\u007f\" at path \"birthday\"","name":"CastError","type":"date","value":"1991-05-30;�R�\u007f","path":"birthday"} | |
Type: CLIENT_InvalidJSON | |
Code: -18 |
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
## Create a new user | |
### URL: http://paysdu42.fr:2048/api/v1/users?lang=en&flute=zut | |
### POST data: &lang=en&login=db0&email=db0lol@gmail.com&password=helloworld&firstname=Barbara&lastname=Lepage&gender=female&birthday=1991-05-30&flute=zut | |
### Content received: | |
{ | |
"error": { | |
"code": 9000, | |
"type": "IOErrorDB", | |
"message": { | |
"message": "Validation failed", | |
"name": "ValidationError", | |
"errors": { | |
"locale": { | |
"message": "Validator \"required\" failed for path locale", | |
"name": "ValidatorError", | |
"path": "locale", | |
"type": "required" | |
} | |
} | |
} | |
}, | |
"element": null | |
} | |
[Error] | |
Message: The JSON tree response is not formatted as expected: Expected string, got object | |
{"message":"Validation failed","name":"ValidationError","errors":{"locale":{"message":"Validator \"required\" failed for path locale","name":"ValidatorError","path":"locale","type":"required"}}} | |
Type: CLIENT_InvalidJSON | |
Code: -18 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment