ALHelton / rails_engine

0 stars 0 forks source link

User Registration #30

Open ALHelton opened 1 year ago

ALHelton commented 1 year ago

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.

ALHelton commented 1 year ago

Image

ALHelton commented 1 year ago

Image

ALHelton commented 1 year ago

Image