-
API Endpoint POST yoursite.com/users
-
Example Request
“‘
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"
} “‘