POST /api/v1/user/signup
Description
This endpoint is used for user registration (new accounts). Users need to provide a unique username and password to create an account.
Body (form data)
This endpoint expects the following data to be provided in the request body:
username: The username for the new account, must be unique. (string)password: The password for the new account. (string)
Request
Response
The response will indicate the success or failure of the sign-up process.
Success Response
{
"code": "201",
"status": "Created",
"message": "User created successfully"
}Bad Request (400)
If either the username or password is missing in the request.
{
"code": "400",
"status": "Bad Request",
"message": "Username and password form is required"
}Conflict (409)
If a user with the provided username already exists.
{
"code": "409",
"status": "Conflict",
"message": "User already exists"
}