Authentication
Register User
Register a new user in the Lockerhaus system.
Endpoint: /api/register
Method: POST
Description: Creates a new user account.
Request Parameters:
{
"name": "string",
"email": "string",
"phone": "string",
"password": "string"
}Response:
{
"status": "success",
"message": "User registered successfully",
"user_id": 12345
}Login
Authenticate a user and receive an access token.
Endpoint: /api/login
Method: POST
Description: Authenticates users and provides them with an access token.
Request Parameters:
{
"email": "string",
"password": "string"
}Response:
{
"status": "success",
"message": "Login successful",
"token": "eyJhbGciUzI1NiIs..."
}Last updated