Skip to content

Instantly share code, notes, and snippets.

@db0company
Created May 28, 2013 13:26
Show Gist options
  • Save db0company/5662743 to your computer and use it in GitHub Desktop.
Save db0company/5662743 to your computer and use it in GitHub Desktop.
## Create a new user
## URL: http://paysdu42.fr:2048/api/v1/users?ang=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": null,
"element": {
"__v": 0,
"login": "db0",
"firstname": "Barbara",
"lastname": "Lepage",
"gender": "female",
"lang": "en",
"password": "helloworld",
"birthday": "1991-05-30T00:00:00.000Z",
"_id": "51a4afc8d6f58f7e2c000001",
"friends": [],
"achievements": [],
"account_creation": "2013-05-28T13:23:20.767Z",
"profile_url": "http://l.ohai.fr/user/db0",
"name": "Barbara Lepage",
"id": "51a4afc8d6f58f7e2c000001"
}
}
[Error]
Message: 1991-05-30T00:00:00.000Z does not match the format %Y-%m-%d
Type: CLIENT_InvalidArgument
Code: -4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment