- JWT Authentication;
- List Users;
- Get an User by ID;
- Delete an User;
- Register a new User;
- Update an existent User.
- JWT
- Spring Boot
- Spring Security
- Swagger
- DTO pattern
- JPA Repository
-
Generate a JWT Token:
POST /auth
-
JWT Token refresh:
POST /auth/refresh
-
List Users:
GET /api/users
-
Delete an User:
DELETE /api/users/delete/{id}
-
Register a new User:
POST /api/users/register
-
Update an User data:
PUT /api/users/update/{id}
-
Get User by ID:
GET /api/users/{id}
The application uses a h2 embedded database, the data initialized for authentication is:
email: [email protected]
password: 123456