Register
Registers a new users in the users table.
Endpoint
- URL:
POST http://<your-domain>/api/auth/register - Headers:
Content-Type: application/json
- Body:
{
"username": "random_username",
"password": "password_here"
}
Response Status
200 OK– User registered successfully403 Forbidden– Username already exists500 Internal Server Error– Database issue