List of Tech features used for this projects are:
- Spring Boot
- Spring Boot Data Jpa
- H2 in memory DB
- Spring Boot Validations
- Swagger
- Mapstruct
- Basic Auth
- Method Level Security
- Central Exception Handler
- Custom Validation Annotation Creations
- Custom Method Security Expressions
- JUnit Rest Api Test Case with Mockito
- One can create User(Role{ADMIN or USER})
- Get User
- Get User List
- Delete User
- Edit User
- Create Product
- Get Product
- Get Product List
- Delete Product
admin | admin@123 |
user | user@123 |
localhost:18080/swagger-ui.html
{
"httpStatus": "BAD_REQUEST",
"timestamp": "2022-04-10 11:55:06",
"message": "Validation Error",
"details": "{password=[Passdword must have min 8 char, max 50!], name=[Name must have min 4 char, max 100!], username=[Name must have min 4 char, max 50!]}"
}
{
"httpStatus": "FORBIDDEN",
"timestamp": "2022-04-10 12:22:12",
"message": "No Access",
"details": "Access is denied"
}