This project is a user management API that allows users to authenticate, register, activate/deactivate users, and retrieve a list of all users. It is built using Java Spring Boot and MySQL database.
- Java Development Kit (JDK) 17 or above
- MySQL Database (You can either use a local MySQL instance or connect to a remote one)
- Clone the project repository from Git (if it's not already cloned).
- Import the project into your favorite Java IDE (e.g., IntelliJ, Eclipse, etc.).
- Build the project to resolve dependencies.
No. | Feature | Description | Endpoint |
---|---|---|---|
1. | Authenticate | Authenticate user credentials | POST /users/auth/authenticate |
2. | Register | Register a new user | POST /users/auth/register |
3. | Activate User | Activate a user account | PUT /users/activation/{userId} |
4. | Deactivate User | Deactivate a user account | PUT /users/deactivation/{userId} |
5. | Get All Users | Retrieve a list of all users | GET /users |
6. | Validate Token | Validate the token | GET /users/auth/token/validation |
erDiagram
USERS {
long id PK
string email "Unique"
string password
boolean enabled "Active or Not"
}