POST /api/v0/users
Content-Type: application/json
Accept: application/json
This POST endpoint should NOT call your endpoint like /api/v0/users?email=person@woohoo.com&password=abc123&password_confirmation=abc123, and should NOT send as form data either. You must send a JSON payload in the body of the request
in Postman, under the address bar, click on “Body”, select “raw”, which will show a dropdown that probably says “Text” in it, choose “JSON” from the list
this is a hard requirement to pass this endpoint!
A successful request creates a user in your database, and generates a unique api key associated with that user, with a 201 status code. The response should NOT include the password in any form
An unsuccessful request returns an appropriate 400-level status code and body with a description of why the request wasn’t successful.
Potential reasons a request would fail: passwords don’t match, email has already been taken, missing a field, etc.
POST /api/v0/users Content-Type: application/json Accept: application/json
This POST endpoint should NOT call your endpoint like /api/v0/users?email=person@woohoo.com&password=abc123&password_confirmation=abc123, and should NOT send as form data either. You must send a JSON payload in the body of the request
A successful request creates a user in your database, and generates a unique api key associated with that user, with a 201 status code. The response should NOT include the password in any form
An unsuccessful request returns an appropriate 400-level status code and body with a description of why the request wasn’t successful.