RESTful API endpoints organized by module — JAX-RS on WildFly 31 + Node.js data services
// POST /api/v1/customer/auth/login
// Request:
{
"username": "[email protected]",
"password": "••••••••"
}
// Response (200 OK):
{
"success": true,
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"user": {
"id": 1,
"username": "[email protected]",
"email": "[email protected]",
"fullName": "Ishantha Siribaddana",
"nic": "199012345678",
"roleId": 1,
"roleName": "Super Admin"
},
"expiresAt": "2026-02-13T22:00:00.000Z"
}
// Error Response (401):
{
"success": false,
"message": "Invalid credentials",
"remainingAttempts": 3
}
// Error Response (423 Locked):
{
"success": false,
"message": "Account locked. Contact administrator.",
"lockedAt": "2026-02-12T21:00:00.000Z"
}