Download OpenAPI specification:
Authenticates a user with the provided email and password.
Login payload containing identifier (`email` or `username`) and `password`.
| email required | string |
| password required | string |
| username required | string |
{- "email": "string",
- "password": "string",
- "username": "string"
}{- "code": 0,
- "result": {
- "id": "string",
- "role": "CUSTOMER"
}
}Registers a new user with the provided information and credentials.
Registration payload containing user data and credentials data.
| email required | string |
| hashedPassword required | string |
| role required | string |
| saltValue required | string |
| username required | string |
{- "email": "string",
- "hashedPassword": "string",
- "role": "string",
- "saltValue": "string",
- "username": "string"
}Updates the profile information for a user.
Payload containing the updated user profile information.
required | object (UserDTO) |
{- "user": {
- "email": "string",
- "id": "string",
- "isEmailVerified": true,
- "role": "string",
- "username": "string"
}
}{- "code": 0,
- "result": "string"
}Updates the password for a user with the provided old and new passwords.
Password update payload containing user, old password, and new password.
| email required | string |
| id required | string |
| newPassword required | string |
| oldHashedPassword required | string |
| username required | string |
{- "email": "string",
- "id": "string",
- "newPassword": "string",
- "oldHashedPassword": "string",
- "username": "string"
}{- "code": 0,
- "result": "string"
}The user inputs a specific otk received in the email
Verification payload containing the user identifier and OTP/key.
| id required | string |
| otk required | string |
{- "id": "string",
- "otk": "string"
}{- "code": 0,
- "result": "string"
}Retrieves a user by their unique identifier.
| id required | string The user identifier received from the path. |
{- "code": 0,
- "result": {
- "email": "string",
- "id": "string",
- "isEmailVerified": true,
- "role": "string",
- "username": "string"
}
}