This project is a secure API application built with Spring Boot. It features JWT-based authentication and role-based access control.
- JWT Authentication: Secure authentication using JSON Web Tokens (JWT).
- Role-based Access Control: Different endpoints for users with
USER
andADMIN
roles. - Secure Endpoints:
- Public endpoint accessible to all.
- User endpoint accessible to authenticated users with
USER
role. - Admin endpoint accessible to authenticated users with
ADMIN
role.
- URL:
/api/public
- Method:
GET
- Description: Accessible by everyone.
- URL:
/api/user
- Method:
GET
- Description: Accessible by users with
USER
role.
- URL:
/api/admin
- Method:
GET
- Description: Accessible by users with
ADMIN
role.