POST /api/register
Creates a new user account with the provided credentials. The password is securely hashed using bcrypt before being stored in the database.Request Body
The full name of the user
The user’s email address. Must be unique across the platform.
The user’s password. Will be hashed before storage for security.
Example Request
Response
Confirmation message indicating successful registration
Success Response (201 Created)
Error Responses
Implementation Details
- Passwords are hashed using bcrypt with a salt round of 10
- Email uniqueness is enforced at the database level
- All three fields (name, email, password) are required for registration
- Successfully created users receive a 201 status code