Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 490 Bytes

README.rdoc

File metadata and controls

30 lines (22 loc) · 490 Bytes

Create a new User

“‘

curl -X POST -H "Content-Type: application/json" \
-d { "name": "John Doe" \
-d "email": "[email protected]" \
-d "password": "s3kr3t" \
-d "password_confirmation": "s3kr3t" } \
http://yoursite/users

“‘

  • Response code will be 201

  • Example Response Body

“‘ json {

"id": "1",
"name": "John Doe",
"email": "[email protected]",
"authentication_token": "s3kr3t-token"

} “‘